public abstract class Op extends Object implements IOp, ITransform
| Constructor and Description |
|---|
Op() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
apply(double x)
Applies the operator to a single value, returning the result
|
double |
applyInverse(double y)
Applies the inverse of this Op.
|
void |
applyTo(AMatrix m) |
void |
applyTo(ArrayVector v) |
void |
applyTo(AScalar s) |
void |
applyTo(AVector v) |
void |
applyTo(AVector v,
int start,
int length) |
void |
applyTo(double[] data) |
void |
applyTo(double[] data,
int start,
int length) |
void |
applyTo(INDArray a) |
abstract 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() |
Op |
getInverse() |
ATransform |
getTransform(int dims)
Converts an operator into a corresponding transform that applies the operator to all elements of its input
|
boolean |
hasDerivative() |
boolean |
hasDerivativeForOutput() |
boolean |
hasInverse() |
int |
inputDimensions()
Returns the number of dimensions required for input vectors
|
boolean |
isBounded() |
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() |
int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
Op |
product(Op op) |
Op |
sum(Op op) |
String |
toString() |
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
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)
IOppublic double applyInverse(double y)
y - public void applyTo(AMatrix m)
public void applyTo(AVector v, int start, int length)
public void applyTo(AScalar s)
public void applyTo(ArrayVector v)
public void applyTo(INDArray a)
public void applyTo(double[] data,
int start,
int length)
public void applyTo(double[] data)
public ATransform getTransform(int dims)
IOpgetTransform in interface IOppublic int inputDimensions()
ITransforminputDimensions in interface ITransformpublic int outputDimensions()
ITransformoutputDimensions in interface ITransformpublic void transform(AVector source, AVector dest)
ITransformtransform in interface ITransformpublic Op getInverse()
getInverse in interface IOppublic boolean hasDerivative()
public boolean hasDerivativeForOutput()
public boolean hasInverse()
public double derivativeForOutput(double y)
y - public double derivative(double x)
y - public boolean isStochastic()
public abstract 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 © 2013. All Rights Reserved.