| Modifier and Type | Method and Description |
|---|---|
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(AVector v)
Applies this operator to 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.
|
double |
averageValue() |
Op |
compose(Op 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.
|
double |
getConstant() |
Op |
getDerivativeOp()
Gets an operator which represents the derivative of this operator.
|
double |
getFactor() |
Identity |
getInverse()
Gets the inverse of this operator.
|
ATransform |
getTransform(int dimensions)
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
|
Op |
product(Op op) |
applyTo, hasInverse, sum, sumapplyTo, applyTo, applyTo, applyTo, applyTo, compose, constrainValues, divide, hasDerivativeForOutput, isBounded, isDomainBounded, isStochastic, maxDomain, maxValue, minDomain, minValue, toString, validateOutputpublic static final Identity INSTANCE
public double getConstant()
getConstant in class ALinearOppublic double apply(double x)
IOperatorpublic double applyInverse(double y)
OpapplyInverse in class Oppublic void applyTo(AVector v)
IOperatorpublic void applyTo(double[] data)
Oppublic void applyTo(double[] data,
int start,
int length)
IOperatorpublic boolean hasDerivative()
OphasDerivative in class ALinearOppublic Op getDerivativeOp()
OpgetDerivativeOp in class ALinearOppublic double averageValue()
averageValue in class Oppublic double derivative(double x)
Opderivative in class ALinearOppublic double derivativeForOutput(double y)
OpderivativeForOutput in class ALinearOppublic ATransform getTransform(int dimensions)
IOperatorgetTransform in interface IOperatorgetTransform in class Oppublic Identity getInverse()
IOperatorgetInverse in interface IOperatorgetInverse in class OpCopyright © 2016. All rights reserved.