Class Conditions
- java.lang.Object
-
- org.nd4j.linalg.indexing.conditions.Conditions
-
public class Conditions extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Conditions.ConditionMode
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Condition
absEquals()
This method will create Condition that checks if the absolute value of x is equal to 0.0 PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
absEquals(double value)
This method will create Condition that checks if the absolute value of x is equal to the specified value.static Condition
absGreaterThan()
This method will create Condition that checks if value is value X is greater than value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
absGreaterThan(Number value)
This method will create Condition that checks if value is value X is greater than value Y in absolute valuesstatic Condition
absGreaterThanOrEqual()
This method will create Condition that checks if value is value X is greater than or equal to value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
absGreaterThanOrEqual(Number value)
This method will create Condition that checks if value is value X is greater than or equal to value Y in absolute valuesstatic Condition
absLessThan()
This method will create Condition that checks if value is value X is less than value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
absLessThan(Number value)
This method will create Condition that checks if value is value X is less than value Y in absolute valuesstatic Condition
absLessThanOrEqual()
This method will create Condition that checks if value is value X is less than or equal to value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
absLessThanOrEqual(Number value)
This method will create Condition that checks if value is value X is less than or equal to value Y in absolute valuesstatic Condition
epsEquals()
This method will create Condition that checks if value is two values are equal wrt eps PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
epsEquals(Number value)
This method will create Condition that checks if value is two values are equal wrt epsstatic Condition
epsEquals(Number value, Number epsilon)
This method will create Condition that checks if value is two values are equal wrt epsstatic Condition
epsNotEquals()
This method will create Condition that checks if value is two values are not equal wrt eps PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
epsNotEquals(Number value)
This method will create Condition that checks if value is two values are not equal wrt epsstatic Condition
equals()
This method will create Condition that checks if value is two values are equal PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
equals(Number value)
This method will create Condition that checks if value is two values are equalstatic Condition
fromInt(int mode)
static Condition
fromInt(int mode, Double value)
static Condition
greaterThan()
This method will create Condition that checks if value is value X is greater than value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
greaterThan(Number value)
This method will create Condition that checks if value is value X is greater than value Ystatic Condition
greaterThanOrEqual()
This method will create Condition that checks if value is value X is greater than or equal to value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
greaterThanOrEqual(Number value)
This method will create Condition that checks if value is value X is greater than or equal to value Ystatic Condition
isFinite()
This method will create Condition that checks if value is finitestatic Condition
isInfinite()
This method will create Condition that checks if value is infinitestatic Condition
isNan()
This method will create Condition that checks if value is NaNstatic Condition
lessThan()
This method will create Condition that checks if value is value X is less than value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
lessThan(Number value)
This method will create Condition that checks if value is value X is less than value Ystatic Condition
lessThanOrEqual()
This method will create Condition that checks if value is value X is less than or equal to value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
lessThanOrEqual(Number value)
This method will create Condition that checks if value is value X is less than or equal to value Ystatic Condition
notEquals()
This method will create Condition that checks if value is two values are not equal PLEASE NOTE: This condition should be used only with pairwise methods, i.e.static Condition
notEquals(Number value)
This method will create Condition that checks if value is two values are not equalstatic Condition
notFinite()
This method will create Condition that checks if value is NOT finite
-
-
-
Method Detail
-
isInfinite
public static Condition isInfinite()
This method will create Condition that checks if value is infinite- Returns:
-
isNan
public static Condition isNan()
This method will create Condition that checks if value is NaN- Returns:
-
isFinite
public static Condition isFinite()
This method will create Condition that checks if value is finite- Returns:
-
notFinite
public static Condition notFinite()
This method will create Condition that checks if value is NOT finite- Returns:
-
epsNotEquals
public static Condition epsNotEquals()
This method will create Condition that checks if value is two values are not equal wrt eps PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
epsNotEquals
public static Condition epsNotEquals(Number value)
This method will create Condition that checks if value is two values are not equal wrt eps- Returns:
-
epsEquals
public static Condition epsEquals()
This method will create Condition that checks if value is two values are equal wrt eps PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
epsEquals
public static Condition epsEquals(Number value)
This method will create Condition that checks if value is two values are equal wrt eps- Returns:
-
epsEquals
public static Condition epsEquals(Number value, Number epsilon)
This method will create Condition that checks if value is two values are equal wrt eps- Returns:
-
equals
public static Condition equals()
This method will create Condition that checks if value is two values are equal PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
equals
public static Condition equals(Number value)
This method will create Condition that checks if value is two values are equal- Returns:
-
notEquals
public static Condition notEquals()
This method will create Condition that checks if value is two values are not equal PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
notEquals
public static Condition notEquals(Number value)
This method will create Condition that checks if value is two values are not equal- Returns:
-
greaterThan
public static Condition greaterThan()
This method will create Condition that checks if value is value X is greater than value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
greaterThan
public static Condition greaterThan(Number value)
This method will create Condition that checks if value is value X is greater than value Y- Returns:
-
lessThan
public static Condition lessThan()
This method will create Condition that checks if value is value X is less than value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
lessThan
public static Condition lessThan(Number value)
This method will create Condition that checks if value is value X is less than value Y- Returns:
-
lessThanOrEqual
public static Condition lessThanOrEqual()
This method will create Condition that checks if value is value X is less than or equal to value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
lessThanOrEqual
public static Condition lessThanOrEqual(Number value)
This method will create Condition that checks if value is value X is less than or equal to value Y- Returns:
-
greaterThanOrEqual
public static Condition greaterThanOrEqual()
This method will create Condition that checks if value is value X is greater than or equal to value Y PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
greaterThanOrEqual
public static Condition greaterThanOrEqual(Number value)
This method will create Condition that checks if value is value X is greater than or equal to value Y- Returns:
-
absGreaterThanOrEqual
public static Condition absGreaterThanOrEqual()
This method will create Condition that checks if value is value X is greater than or equal to value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
absGreaterThanOrEqual
public static Condition absGreaterThanOrEqual(Number value)
This method will create Condition that checks if value is value X is greater than or equal to value Y in absolute values- Returns:
-
absLessThanOrEqual
public static Condition absLessThanOrEqual()
This method will create Condition that checks if value is value X is less than or equal to value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
absLessThanOrEqual
public static Condition absLessThanOrEqual(Number value)
This method will create Condition that checks if value is value X is less than or equal to value Y in absolute values- Returns:
-
absGreaterThan
public static Condition absGreaterThan()
This method will create Condition that checks if value is value X is greater than value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
absGreaterThan
public static Condition absGreaterThan(Number value)
This method will create Condition that checks if value is value X is greater than value Y in absolute values- Returns:
-
absLessThan
public static Condition absLessThan()
This method will create Condition that checks if value is value X is less than value Y in absolute values PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
absEquals
public static Condition absEquals()
This method will create Condition that checks if the absolute value of x is equal to 0.0 PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
absEquals
public static Condition absEquals(double value)
This method will create Condition that checks if the absolute value of x is equal to the specified value. PLEASE NOTE: This condition should be used only with pairwise methods, i.e. INDArray.match(...)- Returns:
-
absLessThan
public static Condition absLessThan(Number value)
This method will create Condition that checks if value is value X is less than value Y in absolute values- Returns:
-
fromInt
public static Condition fromInt(int mode)
-
-