public final class Identity extends ALinearOp
| Modifier and Type | Method and Description |
|---|---|
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(AVector v) |
void |
applyTo(double[] data) |
void |
applyTo(double[] data,
int start,
int length) |
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() |
double |
getFactor() |
Identity |
getInverse() |
ATransform |
getTransform(int dimensions)
Converts an operator into a corresponding transform that applies the operator to all elements of its input
|
boolean |
hasDerivative() |
Op |
product(Op op) |
hasInverse, sum, sumapplyTo, applyTo, applyTo, compose, constrainValues, hasDerivativeForOutput, inputDimensions, isBounded, isDomainBounded, isStochastic, maxDomain, maxValue, minDomain, minValue, outputDimensions, toString, transform, validateOutputpublic static final Identity INSTANCE
public double getConstant()
getConstant in class ALinearOppublic double apply(double x)
IOppublic double applyInverse(double y)
OpapplyInverse in class Oppublic void applyTo(AVector v)
public void applyTo(double[] data,
int start,
int length)
public boolean hasDerivative()
hasDerivative in class ALinearOppublic Op getDerivativeOp()
getDerivativeOp 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)
IOpgetTransform in interface IOpgetTransform in class Oppublic Identity getInverse()
getInverse in interface IOpgetInverse in class OpCopyright © 2013. All Rights Reserved.