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 this operator to a single value, returning the result
|
void |
applyTo(AMatrix v)
Applies this operator to every element of a target matrix, mutating the matrix
|
void |
applyTo(AVector v)
Applies this operator to a mutable vector.
|
void |
applyTo(double[] data,
int start,
int length)
Applies this operator to the specified range within a double[] array.
|
void |
applyTo(INDArray v)
Applies this operator to every element of a target array.
|
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()
Returns true if this operator supports computing the derivative for a given input
|
double |
maxValue() |
double |
minValue() |
averageValue, isBoundedapplyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getDerivativeOp, getInverse, getTransform, hasDerivativeForOutput, hasInverse, isDomainBounded, isStochastic, maxDomain, minDomain, product, sum, toString, validateOutputpublic static final Clamp ZERO_TO_ONE
public double apply(double x)
IOperatorpublic void applyTo(INDArray v)
Oppublic void applyTo(AVector v)
IOperatorpublic void applyTo(AMatrix v)
Oppublic void applyTo(double[] data,
int start,
int length)
IOperatorpublic double minValue()
minValue in class ABoundedOppublic double maxValue()
maxValue in class ABoundedOppublic boolean hasDerivative()
OphasDerivative in class Oppublic double derivative(double x)
Opderivative in class Oppublic double derivativeForOutput(double y)
OpderivativeForOutput in class OpCopyright © 2016. All rights reserved.