public final class Constant extends ALinearOp
| Modifier and Type | Field and Description |
|---|---|
static Constant |
ONE |
double |
value |
static Constant |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double x)
Applies the operator to a single value, returning the result
|
double |
applyInverse(double x)
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) |
static Constant |
create(double constant) |
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() |
double |
maxValue() |
double |
minValue() |
Op |
product(Op op) |
hasDerivative, hasInverse, sum, sumapplyTo, applyTo, compose, constrainValues, getInverse, getTransform, hasDerivativeForOutput, inputDimensions, isBounded, isStochastic, outputDimensions, toString, transform, validateOutputpublic final double value
public static final Constant ZERO
public static final Constant ONE
public static final Constant create(double constant)
public double apply(double x)
IOppublic double applyInverse(double x)
OpapplyInverse in class Oppublic void applyTo(AVector v)
public void applyTo(double[] data,
int start,
int length)
public double getConstant()
getConstant 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 Op getDerivativeOp()
getDerivativeOp in class ALinearOpCopyright © 2013. All Rights Reserved.