mikera.vectorz.ops
Class Inverse
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.Inverse
-
-
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 resultdoubleapplyInverse(double y)Applies the inverse of this Op.doubleaverageValue()doublederivative(double y)Returns the derivative of this Op for a given input value x i.e.OpgetInverse()Gets the inverse of this operator.booleanhasDerivative()Returns true if this operator supports computing the derivative for a given inputbooleanhasInverse()Returns true if this operator supports computing the inverse for a given outputdoublemaxDomain()doublemaxValue()doubleminDomain()doubleminValue()-
Methods inherited from class mikera.vectorz.Op
applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, derivativeForOutput, divide, getDerivativeOp, getTransform, hasDerivativeForOutput, isBounded, isDomainBounded, isStochastic, product, sum, toString, validateOutput
-
-
-
-
Constructor Detail
-
Inverse
public Inverse(Op op)
-
-
Method Detail
-
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:
-
derivative
public double derivative(double y)
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:
-
getInverse
public Op getInverse()
Description copied from interface:IOperatorGets the inverse of this operator. Returns null if no inverse exists.- Specified by:
getInversein interfaceIOperator- Overrides:
getInversein classOp- Returns:
-
averageValue
public double averageValue()
- Overrides:
averageValuein classOp
-
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:
-
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:
-
-
DMelt 3.0 © DataMelt by jWork.ORG