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

Class Composed

  • All Implemented Interfaces:
    IOperator


    public class Composed
    extends Op
    • Field Detail

      • inner

        public final Op inner
      • outer

        public final Op outer
    • Method Detail

      • compose

        public static Op compose(Op outer,
                                 Op inner)
      • create

        public static Op create(Op a,
                                Op b)
      • 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(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
      • isBounded

        public boolean isBounded()
        Description copied from class: Op
        Returns true if this operator has a known finite upper or lower bound
        Overrides:
        isBounded in class Op
        Returns:
      • minValue

        public double minValue()
        Overrides:
        minValue 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:
      • 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:
      • 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 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:
      • 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 Op
        Returns:
      • maxValue

        public double maxValue()
        Overrides:
        maxValue in class Op
      • 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:
      • isStochastic

        public boolean isStochastic()
        Description copied from class: Op
        Returns true if the operator is stochastic, i.e returns random values for at least some inputs
        Overrides:
        isStochastic in class Op
        Returns:
      • getInverse

        public Op getInverse()
        Description copied from interface: IOperator
        Gets the inverse of this operator. Returns null if no inverse exists.
        Specified by:
        getInverse in interface IOperator
        Overrides:
        getInverse in class Op
        Returns:
      • averageValue

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

        public java.lang.String toString()
        Overrides:
        toString in class Op

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.