Documentation of 'mikera.vectorz.ops.Absolute' Java class
Absolute
mikera.vectorz.ops

Class Absolute

  • All Implemented Interfaces:
    IOperator


    public class Absolute
    extends Op
    • Field Detail

      • INSTANCE

        public static final Absolute INSTANCE
    • Constructor Detail

      • Absolute

        public Absolute()
    • Method Detail

      • apply

        public double apply(double x)
        Description copied from interface: IOperator
        Applies this operator to a single value, returning the result
        Specified by:
        apply in interface IOperator
        Specified by:
        apply in class Op
        Returns:
      • applyTo

        public void applyTo(AVector v)
        Description copied from interface: IOperator
        Applies this operator to a mutable vector.
        Specified by:
        applyTo in interface IOperator
        Overrides:
        applyTo in class Op
      • applyTo

        public void applyTo(INDArray v)
        Description copied from class: Op
        Applies this operator to every element of a target array. Mutates the array in place.
        Overrides:
        applyTo in class Op
      • averageValue

        public double averageValue()
        Overrides:
        averageValue in class Op
      • hasDerivative

        public boolean hasDerivative()
        Description copied from class: Op
        Returns true if this operator supports computing the derivative for a given input
        Overrides:
        hasDerivative in class Op
        Returns:
      • hasInverse

        public boolean hasInverse()
        Description copied from class: Op
        Returns true if this operator supports computing the inverse for a given output
        Overrides:
        hasInverse in class Op
        Returns:
      • hasDerivativeForOutput

        public boolean hasDerivativeForOutput()
        Description copied from class: Op
        Returns true if this operator supports computing the derivative for a given output
        Overrides:
        hasDerivativeForOutput in class Op
        Returns:
      • derivative

        public double derivative(double x)
        Description copied from class: Op
        Returns the derivative of this Op for a given input value x i.e. f'(x) where f is the operator
        Overrides:
        derivative in class Op
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.