public final class Clamp extends ABoundedOp
| Modifier and Type | Field and Description |
|---|---|
static Clamp |
ZERO_TO_ONE |
| Constructor and Description |
|---|
Clamp(double min,
double max) |
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double x)
Applies the operator to a single value, returning the result
|
void |
applyTo(AVector v) |
void |
applyTo(double[] data,
int start,
int length) |
void |
applyTo(INDArray v) |
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.
|
boolean |
hasDerivative() |
double |
maxValue() |
double |
minValue() |
averageValue, isBoundedapplyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getDerivativeOp, getInverse, getTransform, hasDerivativeForOutput, hasInverse, inputDimensions, isDomainBounded, isStochastic, maxDomain, minDomain, outputDimensions, product, sum, toString, transform, validateOutputpublic static final Clamp ZERO_TO_ONE
public double apply(double x)
IOppublic void applyTo(AVector v)
public void applyTo(double[] data,
int start,
int length)
public double minValue()
minValue in class ABoundedOppublic double maxValue()
maxValue in class ABoundedOppublic boolean hasDerivative()
hasDerivative in class Oppublic double derivative(double x)
Opderivative in class Oppublic double derivativeForOutput(double y)
OpderivativeForOutput in class OpCopyright © 2013. All Rights Reserved.