mikera.vectorz.ops
Class Logistic
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.ABoundedOp
-
- mikera.vectorz.ops.Logistic
-
- All Implemented Interfaces:
- IOperator
public final class Logistic extends ABoundedOp
-
-
Constructor Summary
Constructors Constructor and Description Logistic()
-
Method Summary
All Methods Static 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(AVector v)Applies this operator to a mutable vector.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 inputstatic doublelogisticFunction(double a)doublemaxValue()doubleminValue()-
Methods inherited from class mikera.vectorz.ops.ABoundedOp
isBounded
-
Methods inherited from class mikera.vectorz.Op
applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getDerivativeOp, getInverse, getTransform, hasDerivativeForOutput, hasInverse, isDomainBounded, isStochastic, maxDomain, minDomain, product, sum, toString, validateOutput
-
-
-
-
Field Detail
-
INSTANCE
public static final Logistic INSTANCE
-
-
Method Detail
-
logisticFunction
public static double logisticFunction(double a)
-
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.
-
applyTo
public void applyTo(AVector v)
Description copied from interface:IOperatorApplies this operator to a mutable vector.
-
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:
-
minValue
public double minValue()
- Specified by:
minValuein classABoundedOp
-
maxValue
public double maxValue()
- Specified by:
maxValuein classABoundedOp
-
averageValue
public double averageValue()
- Overrides:
averageValuein classABoundedOp
-
-
DMelt 3.0 © DataMelt by jWork.ORG