Modifier and Type | Method and Description |
---|---|
IComplexNDArray |
BaseComplexNDArray.cond(Condition condition) |
IComplexNDArray |
IComplexNDArray.cond(Condition condition)
1 in an ndarray when condition is fulfilled,
0 otherwise(copying)(
|
IComplexNDArray |
BaseComplexNDArray.condi(Condition condition) |
IComplexNDArray |
IComplexNDArray.condi(Condition condition)
1 in an ndarray when condition is fulfilled,
0 otherwise(copying)(
|
Modifier and Type | Method and Description |
---|---|
INDArray |
BaseNDArray.assignIf(INDArray arr,
Condition condition)
Assign all elements from given ndarray that are matching given condition,
ndarray to this ndarray
|
INDArray |
INDArray.assignIf(INDArray arr,
Condition condition)
Assign all elements from given ndarray that are matching given condition,
ndarray to this ndarray
|
INDArray |
BaseNDArray.cond(Condition condition) |
INDArray |
INDArray.cond(Condition condition)
1 in the ndarray if the element matches
the condition 0 otherwise
|
INDArray |
BaseNDArray.condi(Condition condition) |
INDArray |
INDArray.condi(Condition condition)
1 in the ndarray if the element matches
the condition 0 otherwise
|
INDArray |
BaseNDArray.replaceWhere(INDArray arr,
Condition condition)
Replaces all elements in this ndarray that are matching give condition, with corresponding elements from given array
|
INDArray |
INDArray.replaceWhere(INDArray arr,
Condition condition)
Replaces all elements in this ndarray that are matching give condition, with corresponding elements from given array
|
Number |
BaseNDArray.scan(Condition condition) |
Number |
INDArray.scan(Condition condition)
This method takes boolean condition, and returns number of elements matching this condition
|
Constructor and Description |
---|
MatchCondition(INDArray x,
Condition condition) |
MatchCondition(INDArray x,
double eps,
Condition condition) |
Modifier and Type | Field and Description |
---|---|
protected Condition |
LastIndex.condition |
protected Condition |
FirstIndex.condition |
Constructor and Description |
---|
FirstIndex(INDArray x,
Condition condition) |
FirstIndex(INDArray x,
Condition condition,
double eps) |
LastIndex(INDArray x,
Condition condition) |
LastIndex(INDArray x,
Condition condition,
double eps) |
Constructor and Description |
---|
CompareAndReplace(INDArray x,
INDArray y,
Condition condition)
With this constructor, op will check each X element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise
PLEASE NOTE: X will be modified inplace.
|
CompareAndReplace(INDArray x,
INDArray y,
INDArray z,
Condition condition)
With this constructor, op will check each X element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise
Pseudocode:
z[i] = condition(x[i]) ? y[i] : x[i];
|
CompareAndSet(INDArray x,
double set,
Condition condition)
With this constructor, op will check each X element against given Condition, and if condition met, element will be replaced with Set value
Pseudocode:
z[i] = condition(x[i]) ? set : x[i];
PLEASE NOTE: X will be modified inplace.
|
CompareAndSet(INDArray x,
double compare,
double set,
double eps,
Condition condition) |
CompareAndSet(INDArray x,
INDArray y,
Condition condition)
With this constructor, op will check each Y element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise
PLEASE NOTE: X will be modified inplace.
|
CompareAndSet(INDArray x,
INDArray z,
double set,
Condition condition)
With this constructor, op will check each X element against given Condition, and if condition met, element will be replaced with Set value
Pseudocode:
z[i] = condition(x[i]) ? set : x[i];
|
CompareAndSet(INDArray x,
INDArray y,
INDArray z,
Condition condition)
With this constructor, op will check each Y element against given Condition, and if condition met, element Z will be set to Y value, and X otherwise
Pseudocode:
z[i] = condition(y[i]) ? y[i] : x[i];
|
Modifier and Type | Method and Description |
---|---|
void |
DataSet.apply(Condition condition,
com.google.common.base.Function<Number,Number> function) |
Modifier and Type | Method and Description |
---|---|
void |
DataSet.apply(Condition condition,
com.google.common.base.Function<Number,Number> function) |
Modifier and Type | Method and Description |
---|---|
static boolean |
BooleanIndexing.and(IComplexNDArray n,
Condition cond)
And
|
static boolean |
BooleanIndexing.and(INDArray n,
Condition cond)
And over the whole ndarray given some condition
|
static boolean[] |
BooleanIndexing.and(INDArray n,
Condition condition,
int... dimension)
And over the whole ndarray given some condition, with respect to dimensions
|
static void |
BooleanIndexing.applyWhere(IComplexNDArray to,
Condition condition,
com.google.common.base.Function<IComplexNumber,IComplexNumber> function)
Based on the matching elements
op to based on condition to with function function
|
static void |
BooleanIndexing.applyWhere(INDArray to,
Condition condition,
com.google.common.base.Function<Number,Number> function)
Based on the matching elements
op to based on condition to with function function
|
static void |
BooleanIndexing.applyWhere(INDArray to,
Condition condition,
com.google.common.base.Function<Number,Number> function,
com.google.common.base.Function<Number,Number> alternativeFunction)
Based on the matching elements
op to based on condition to with function function
|
static void |
BooleanIndexing.applyWhere(INDArray to,
Condition condition,
Number number)
This method sets provided number to all elements which match specified condition
|
static void |
BooleanIndexing.assignIf(INDArray to,
INDArray from,
Condition condition)
This method does element-wise assing for 2 equal-sized matrices, for each element that matches Condition
|
static INDArray |
BooleanIndexing.firstIndex(INDArray array,
Condition condition)
This method returns first index matching given condition
PLEASE NOTE: This method will return -1 value if condition wasn't met
|
static INDArray |
BooleanIndexing.firstIndex(INDArray array,
Condition condition,
int... dimension)
This method returns first index matching given condition along given dimensions
PLEASE NOTE: This method will return -1 values for missing conditions
|
static INDArray |
BooleanIndexing.lastIndex(INDArray array,
Condition condition)
This method returns last index matching given condition
PLEASE NOTE: This method will return -1 value if condition wasn't met
|
static INDArray |
BooleanIndexing.lastIndex(INDArray array,
Condition condition,
int... dimension)
This method returns first index matching given condition along given dimensions
PLEASE NOTE: This method will return -1 values for missing conditions
|
static boolean |
BooleanIndexing.or(IComplexNDArray n,
Condition cond)
Or over the whole ndarray given some condition
|
static boolean |
BooleanIndexing.or(INDArray n,
Condition cond)
Or over the whole ndarray given some condition
|
static boolean[] |
BooleanIndexing.or(INDArray n,
Condition condition,
int... dimension)
Or over the whole ndarray given some condition, with respect to dimensions
|
static void |
BooleanIndexing.replaceWhere(INDArray to,
INDArray from,
Condition condition)
This method does element-wise assing for 2 equal-sized matrices, for each element that matches Condition
|
static void |
BooleanIndexing.replaceWhere(INDArray to,
Number set,
Condition condition)
This method does element-wise assing for 2 equal-sized matrices, for each element that matches Condition
|
Modifier and Type | Class and Description |
---|---|
class |
AbsValueGreaterOrEqualsThan
Boolean condition on absolute value: abs(x) >= value
|
class |
AbsValueGreaterThan
Boolean condition on absolute value: abs(x) > value
|
class |
AbsValueLessOrEqualsThan
Boolean condition on absolute value: abs(x) <= value
|
class |
AbsValueLessThan
Boolean condition on absolute value: abs(x) < value
|
class |
And
Created by agibsonccc on 10/9/14.
|
class |
BaseCondition
Created by agibsonccc on 10/8/14.
|
class |
ConditionEquals
Returns true when all of the conditions equal each other
|
class |
EpsilonEquals
Created by agibsonccc on 10/8/14.
|
class |
EpsilonNotEquals
Created by agibsonccc on 10/8/14.
|
class |
EqualsCondition
Created by agibsonccc on 10/8/14.
|
class |
GreaterThan
Created by agibsonccc on 10/8/14.
|
class |
GreaterThanOrEqual
Created by agibsonccc on 10/8/14.
|
class |
IsInfinite
Created by agibsonccc on 10/8/14.
|
class |
IsNaN
Condition for whether an element is NaN
|
class |
LessThan
Created by agibsonccc on 10/8/14.
|
class |
LessThanOrEqual
Created by agibsonccc on 10/8/14.
|
class |
Not
Created by agibsonccc on 10/9/14.
|
class |
NotEqualsCondition
Created by agibsonccc on 10/8/14.
|
class |
Or
An or between 2 conditions.
|
Modifier and Type | Method and Description |
---|---|
static Condition |
Conditions.absGreaterThan(Number value) |
static Condition |
Conditions.absGreaterThanOrEqual(Number value) |
static Condition |
Conditions.absLessThan(Number value) |
static Condition |
Conditions.absLessThanOrEqual(Number value) |
Condition |
ConditionBuilder.build() |
static Condition |
Conditions.epsEquals(IComplexNumber value) |
static Condition |
Conditions.epsEquals(Number value) |
static Condition |
Conditions.epsNotEquals(Number value) |
static Condition |
Conditions.equals(IComplexNumber value) |
static Condition |
Conditions.equals(Number value) |
static Condition |
Conditions.greaterThan(IComplexNumber value) |
static Condition |
Conditions.greaterThan(Number value) |
static Condition |
Conditions.greaterThanOrEqual(IComplexNumber value) |
static Condition |
Conditions.greaterThanOrEqual(Number value) |
static Condition |
Conditions.isInfinite() |
static Condition |
Conditions.isNan() |
static Condition |
Conditions.lessThan(IComplexNumber value) |
static Condition |
Conditions.lessThan(Number value) |
static Condition |
Conditions.lessThanOrEqual(IComplexNumber value) |
static Condition |
Conditions.lessThanOrEqual(Number value) |
static Condition |
Conditions.notEquals(Number value) |
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
ConditionBuilder.and(Condition... conditions) |
ConditionBuilder |
ConditionBuilder.eq(Condition... conditions) |
ConditionBuilder |
ConditionBuilder.or(Condition... conditions) |
Constructor and Description |
---|
And(Condition... conditions) |
ConditionEquals(Condition... conditions) |
Not(Condition condition) |
Or(Condition... conditions) |
Copyright © 2017. All rights reserved.