mikera.vectorz.ops
Class ScaledLogistic
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.ScaledLogistic
-
-
Field Summary
Fields Modifier and Type Field and Description static ScaledLogisticINSTANCE
-
Constructor Summary
Constructors Constructor and Description ScaledLogistic(double d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleapply(double x)Applies this operator to a single value, returning the resultdoubleapplyInverse(double y)Applies the inverse of this Op.voidapplyTo(double[] data, int start, int length)Applies this operator to the specified range within a double[] array.doubleaverageValue()doublederivative(double x)Returns the derivative of this Op for a given input value x i.e.doublederivativeForOutput(double y)Returns the derivative of this Op for a given output value y i.e.booleanhasDerivative()Returns true if this operator supports computing the derivative for a given inputdoublemaxValue()doubleminValue()-
Methods inherited from class mikera.vectorz.Op
applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getDerivativeOp, getInverse, getTransform, hasDerivativeForOutput, hasInverse, isBounded, isDomainBounded, isStochastic, maxDomain, minDomain, product, sum, toString, validateOutput
-
-
-
-
Field Detail
-
INSTANCE
public static final ScaledLogistic INSTANCE
-
-
Method Detail
-
apply
public double apply(double x)
Description copied from interface:IOperatorApplies this operator to a single value, returning the result
-
applyInverse
public double applyInverse(double y)
Description copied from class:OpApplies the inverse of this Op. Throws an error if the inverse function does not exist. Returns Double.NaN if no inverse exists for the specific value of y.- Overrides:
applyInversein classOp- Returns:
-
applyTo
public void applyTo(double[] data, int start, int length)Description copied from interface:IOperatorApplies this operator to the specified range within a double[] array.
-
hasDerivative
public boolean hasDerivative()
Description copied from class:OpReturns true if this operator supports computing the derivative for a given input- Overrides:
hasDerivativein classOp- Returns:
-
derivativeForOutput
public double derivativeForOutput(double y)
Description copied from class:OpReturns the derivative of this Op for a given output value y i.e. f'(g(y)) where f is the operator, g is the inverse of f- Overrides:
derivativeForOutputin classOp- Returns:
-
derivative
public double derivative(double x)
Description copied from class:OpReturns the derivative of this Op for a given input value x i.e. f'(x) where f is the operator- Overrides:
derivativein classOp- Returns:
-
averageValue
public double averageValue()
- Overrides:
averageValuein classOp
-
-
DMelt 3.0 © DataMelt by jWork.ORG