public final class Tanh extends ABoundedOp
| Constructor and Description |
|---|
Tanh() |
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double x)
Applies this operator to a single value, returning the result
|
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() |
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() |
isBoundedapplyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getDerivativeOp, getInverse, getTransform, hasDerivativeForOutput, hasInverse, isDomainBounded, isStochastic, maxDomain, minDomain, product, sum, toString, validateOutputpublic static final Tanh INSTANCE
public double apply(double x)
IOperatorpublic void applyTo(AVector v)
IOperatorpublic void applyTo(double[] data)
Oppublic void applyTo(double[] data,
int start,
int length)
IOperatorpublic boolean hasDerivative()
OphasDerivative in class Oppublic double derivativeForOutput(double y)
OpderivativeForOutput in class Oppublic double derivative(double x)
Opderivative in class Oppublic double minValue()
minValue in class ABoundedOppublic double averageValue()
averageValue in class ABoundedOppublic double maxValue()
maxValue in class ABoundedOpCopyright © 2016. All rights reserved.