mikera.vectorz.ops
Class ALinearOp
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.APolynomialOp
-
- mikera.vectorz.ops.ALinearOp
-
-
Constructor Summary
Constructors Constructor and Description ALinearOp()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidapplyTo(AVector v)Applies this operator to a mutable vector.voidapplyTo(INDArray a)Applies this operator to every element of a target array.Opcompose(Op op)doublederivative(double x)Returns the derivative of this Op for a given input value x i.e.doublederivativeForOutput(double y)Returns the derivative of this Op for a given output value y i.e.abstract doublegetConstant()OpgetDerivativeOp()Gets an operator which represents the derivative of this operator.abstract doublegetFactor()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 outputOpsum(ALinearOp op)Opsum(Op op)-
Methods inherited from class mikera.vectorz.Op
apply, applyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, averageValue, compose, constrainValues, divide, getInverse, getTransform, hasDerivativeForOutput, isBounded, isDomainBounded, isStochastic, maxDomain, maxValue, minDomain, minValue, product, toString, validateOutput
-
-
-
-
Method Detail
-
getFactor
public abstract double getFactor()
-
getConstant
public abstract double getConstant()
-
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:
-
applyTo
public void applyTo(INDArray a)
Description copied from class:OpApplies this operator to every element of a target array. Mutates the array in place.
-
applyTo
public void applyTo(AVector v)
Description copied from interface:IOperatorApplies this operator to a mutable vector.
-
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:
-
derivativeForOutput
public double derivativeForOutput(double y)
Description copied from class:OpReturns 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:
derivativeForOutputin classOp- Returns:
-
getDerivativeOp
public Op getDerivativeOp()
Description copied from class:OpGets an operator which represents the derivative of this operator. Returns nil if this cannot be computed or does not exist.- Overrides:
getDerivativeOpin 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:
-
-
DMelt 3.0 © DataMelt by jWork.ORG