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 classConditions.ConditionMode
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConditionabsEquals()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 ConditionabsEquals(double value)This method will create Condition that checks if the absolute value of x is equal to the specified value.static ConditionabsGreaterThan()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 ConditionabsGreaterThan(Number value)This method will create Condition that checks if value is value X is greater than value Y in absolute valuesstatic ConditionabsGreaterThanOrEqual()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 ConditionabsGreaterThanOrEqual(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 ConditionabsLessThan()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 ConditionabsLessThan(Number value)This method will create Condition that checks if value is value X is less than value Y in absolute valuesstatic ConditionabsLessThanOrEqual()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 ConditionabsLessThanOrEqual(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 ConditionepsEquals()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 ConditionepsEquals(Number value)This method will create Condition that checks if value is two values are equal wrt epsstatic ConditionepsEquals(Number value, Number epsilon)This method will create Condition that checks if value is two values are equal wrt epsstatic ConditionepsNotEquals()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 ConditionepsNotEquals(Number value)This method will create Condition that checks if value is two values are not equal wrt epsstatic Conditionequals()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 Conditionequals(Number value)This method will create Condition that checks if value is two values are equalstatic ConditionfromInt(int mode)static ConditionfromInt(int mode, Double value)static ConditiongreaterThan()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 ConditiongreaterThan(Number value)This method will create Condition that checks if value is value X is greater than value Ystatic ConditiongreaterThanOrEqual()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 ConditiongreaterThanOrEqual(Number value)This method will create Condition that checks if value is value X is greater than or equal to value Ystatic ConditionisFinite()This method will create Condition that checks if value is finitestatic ConditionisInfinite()This method will create Condition that checks if value is infinitestatic ConditionisNan()This method will create Condition that checks if value is NaNstatic ConditionlessThan()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 ConditionlessThan(Number value)This method will create Condition that checks if value is value X is less than value Ystatic ConditionlessThanOrEqual()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 ConditionlessThanOrEqual(Number value)This method will create Condition that checks if value is value X is less than or equal to value Ystatic ConditionnotEquals()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 ConditionnotEquals(Number value)This method will create Condition that checks if value is two values are not equalstatic ConditionnotFinite()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)
-
-