mikera.vectorz
Interface IOperator
-
- All Known Implementing Classes:
- ABoundedOp, Absolute, AFunctionOp, ALinearOp, APolynomialOp, ARoundingOp, Clamp, Composed, Constant, Cosh, Derivative, Division, Exp, GaussianNoise, Identity, Inverse, Linear, Log, Logistic, LogN, NormalRBF, Offset, Op, Power, Product, Quadratic, Reciprocal, ScaledLogistic, Signum, SoftPlus, Sqrt, Square, StochasticBinary, Sum, Tanh
public interface IOperatorInterface for a scalar operator that transforms a double value to another double value
-
-
Method Summary
All Methods Instance Methods Abstract 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(AVector v, int start, int length)Applies this operator to the specified range within a mutable vector.voidapplyTo(double[] data, int start, int length)Applies this operator to the specified range within a double[] array.voidapplyTo(double[] data, int start, int stride, int length)Applies this operator to the specified strided range within a double[] array.OpgetInverse()Gets the inverse of this operator.ATransformgetTransform(int dims)Converts an operator into a corresponding transform that applies the operator to all elements of its input
-
-
-
Method Detail
-
apply
double apply(double x)
Applies this operator to a single value, returning the result- Parameters:
x-- Returns:
-
applyTo
void applyTo(AVector v)
Applies this operator to a mutable vector.- Parameters:
x-
-
applyTo
void applyTo(AVector v, int start, int length)
Applies this operator to the specified range within a mutable vector.- Parameters:
x-
-
applyTo
void applyTo(double[] data, int start, int length)Applies this operator to the specified range within a double[] array.- Parameters:
x-
-
applyTo
void applyTo(double[] data, int start, int stride, int length)Applies this operator to the specified strided range within a double[] array.- Parameters:
x-
-
getTransform
ATransform getTransform(int dims)
Converts an operator into a corresponding transform that applies the operator to all elements of its input- Parameters:
dims-- Returns:
-
getInverse
Op getInverse()
Gets the inverse of this operator. Returns null if no inverse exists.- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG