public abstract class Op extends Object implements IOperator
| Constructor and Description |
|---|
Op() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
apply(double x)
Applies this operator to a single value, returning the result
|
double |
applyInverse(double y)
Applies the inverse of this Op.
|
void |
applyTo(ADenseArrayVector v)
Applies this operator to a dense array vector, mutating the vector
|
void |
applyTo(AMatrix m)
Applies this operator to every element of a target matrix, mutating the matrix
|
void |
applyTo(AScalar s)
Applies this operator to a scalar, mutating the scalar
|
void |
applyTo(AVector v)
Applies this operator to a mutable vector.
|
void |
applyTo(AVector v,
int start,
int length)
Applies this operator to the specified range within a mutable vector.
|
void |
applyTo(double[] data)
Applies this operator to every element in a double[] array, mutating the array in place
|
void |
applyTo(double[] data,
int start,
int length)
Applies this operator to the specified range within a double[] array.
|
void |
applyTo(double[] data,
int start,
int stride,
int length)
Applies this operator to the specified strided range within a double[] array.
|
void |
applyTo(INDArray a)
Applies this operator to every element of a target array.
|
double |
averageValue() |
Op |
compose(Op op) |
static Op |
compose(Op op1,
Op op2) |
void |
constrainValues(double[] src,
double[] dest,
int offset,
int length)
Creates a copy of the values of src in dest, constraining them to be within the valid
range of output values from this Op
|
double |
derivative(double x)
Returns the derivative of this Op for a given input value x
i.e.
|
double |
derivativeForOutput(double y)
Returns the derivative of this Op for a given output value y
i.e.
|
Op |
divide(Op op) |
Op |
getDerivativeOp()
Gets an operator which represents the derivative of this operator.
|
Op |
getInverse()
Gets the inverse of this operator.
|
ATransform |
getTransform(int dims)
Converts an operator into a corresponding transform that applies the operator to all elements of its input
|
boolean |
hasDerivative()
Returns true if this operator supports computing the derivative for a given input
|
boolean |
hasDerivativeForOutput()
Returns true if this operator supports computing the derivative for a given output
|
boolean |
hasInverse()
Returns true if this operator supports computing the inverse for a given output
|
boolean |
isBounded()
Returns true if this operator has a known finite upper or lower bound
|
boolean |
isDomainBounded() |
boolean |
isStochastic()
Returns true if the operator is stochastic, i.e returns random values for at least some inputs
|
double |
maxDomain() |
double |
maxValue() |
double |
minDomain() |
double |
minValue() |
Op |
product(Op op) |
Op |
sum(Op op) |
String |
toString() |
boolean |
validateOutput(double[] output)
Validates whether all values in a double[] are within the possible output range for this Op
|
public abstract double apply(double x)
IOperatorpublic double applyInverse(double y)
y - public void applyTo(AVector v)
IOperatorpublic void applyTo(AMatrix m)
public void applyTo(AVector v, int start, int length)
IOperatorpublic void applyTo(AScalar s)
s - public void applyTo(ADenseArrayVector v)
s - public void applyTo(INDArray a)
a - public void applyTo(double[] data,
int start,
int length)
IOperatorpublic void applyTo(double[] data,
int start,
int stride,
int length)
IOperatorpublic void applyTo(double[] data)
data - public ATransform getTransform(int dims)
IOperatorgetTransform in interface IOperatorpublic Op getInverse()
IOperatorgetInverse in interface IOperatorpublic boolean hasDerivative()
public boolean hasDerivativeForOutput()
public boolean hasInverse()
public double derivativeForOutput(double y)
y - public double derivative(double x)
y - public boolean isStochastic()
public double averageValue()
public double minValue()
public double maxValue()
public double minDomain()
public double maxDomain()
public boolean isDomainBounded()
public boolean validateOutput(double[] output)
output - public void constrainValues(double[] src,
double[] dest,
int offset,
int length)
src - dest - offset - length - public boolean isBounded()
public Op getDerivativeOp()
Copyright © 2016. All rights reserved.