mikera.vectorz.ops
Class Signum
- java.lang.Object
-
- mikera.vectorz.Op
-
- mikera.vectorz.ops.AFunctionOp
-
- mikera.vectorz.ops.ARoundingOp
-
- mikera.vectorz.ops.Signum
-
- All Implemented Interfaces:
- IOperator
public class Signum extends ARoundingOp
-
-
Constructor Summary
Constructors Constructor and Description Signum()
-
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 resultvoidapplyTo(AVector v)Applies this operator to a mutable vector.voidapplyTo(INDArray v)Applies this operator to every element of a target array.-
Methods inherited from class mikera.vectorz.ops.ARoundingOp
averageValue, derivative, derivativeForOutput, hasDerivativeForOutput, hasInverse
-
Methods inherited from class mikera.vectorz.Op
applyInverse, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, compose, compose, constrainValues, divide, getDerivativeOp, getInverse, getTransform, hasDerivative, isBounded, isDomainBounded, isStochastic, maxDomain, maxValue, minDomain, minValue, product, sum, toString, validateOutput
-
-
-
-
Field Detail
-
INSTANCE
public static final Signum INSTANCE
-
-
Method Detail
-
apply
public double apply(double x)
Description copied from interface:IOperatorApplies this operator to a single value, returning the result
-
applyTo
public void applyTo(INDArray v)
Description copied from class:OpApplies this operator to every element of a target array. Mutates the array in place.
-
-
DMelt 3.0 © DataMelt by jWork.ORG