mikera.vectorz.ops
Class Absolute
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.Absolute
-
-
Constructor Summary
Constructors Constructor and Description Absolute()
-
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 resultvoidapplyTo(AVector v)Applies this operator to a mutable vector.voidapplyTo(INDArray v)Applies this operator to every element of a target array.doubleaverageValue()doublederivative(double x)Returns the derivative of this Op for a given input value x i.e.booleanhasDerivative()Returns true if this operator supports computing the derivative for a given inputbooleanhasDerivativeForOutput()Returns true if this operator supports computing the derivative for a given outputbooleanhasInverse()Returns true if this operator supports computing the inverse for a given output-
Methods inherited from class mikera.vectorz.Op
applyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, derivativeForOutput, divide, getDerivativeOp, getInverse, getTransform, isBounded, isDomainBounded, isStochastic, maxDomain, maxValue, minDomain, minValue, product, sum, toString, validateOutput
-
-
-
-
Field Detail
-
INSTANCE
public static final Absolute INSTANCE
-
-
Method Detail
-
apply
public double apply(double x)
Description copied from interface:IOperatorApplies this operator to a single value, returning the result
-
applyTo
public void applyTo(AVector v)
Description copied from interface:IOperatorApplies this operator to a mutable vector.
-
applyTo
public void applyTo(INDArray v)
Description copied from class:OpApplies this operator to every element of a target array. Mutates the array in place.
-
averageValue
public double averageValue()
- Overrides:
averageValuein classOp
-
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:
-
hasInverse
public boolean hasInverse()
Description copied from class:OpReturns true if this operator supports computing the inverse for a given output- Overrides:
hasInversein classOp- Returns:
-
hasDerivativeForOutput
public boolean hasDerivativeForOutput()
Description copied from class:OpReturns true if this operator supports computing the derivative for a given output- Overrides:
hasDerivativeForOutputin 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:
-
-
DMelt 3.0 © DataMelt by jWork.ORG