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

Class Constant

    • Field Detail

      • value

        public final double value
      • ZERO

        public static final Constant ZERO
      • HALF

        public static final Constant HALF
    • Method Detail

      • create

        public static final Constant create(double constant)
      • 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:
      • applyInverse

        public double applyInverse(double x)
        Description copied from class: Op
        Applies 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:
        applyInverse in class Op
        Returns:
      • 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 ALinearOp
      • applyTo

        public void applyTo(double[] data)
        Description copied from class: Op
        Applies this operator to every element in a double[] array, mutating the array in place
        Overrides:
        applyTo in class Op
      • applyTo

        public void applyTo(double[] data,
                            int start,
                            int length)
        Description copied from interface: IOperator
        Applies this operator to the specified range within a double[] array.
        Specified by:
        applyTo in interface IOperator
        Overrides:
        applyTo in class Op
      • minValue

        public double minValue()
        Overrides:
        minValue in class Op
      • maxValue

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

        public double averageValue()
        Overrides:
        averageValue in class Op
      • 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 ALinearOp
        Returns:
      • derivativeForOutput

        public double derivativeForOutput(double y)
        Description copied from class: Op
        Returns 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:
        derivativeForOutput in class ALinearOp
        Returns:
      • getDerivativeOp

        public Op getDerivativeOp()
        Description copied from class: Op
        Gets an operator which represents the derivative of this operator. Returns nil if this cannot be computed or does not exist.
        Overrides:
        getDerivativeOp in class ALinearOp
        Returns:
      • product

        public Op product(Op op)
        Overrides:
        product in class Op

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.