mikera.vectorz.functions
Class ScalarFunction
- java.lang.Object
-
- mikera.transformz.ATransform
-
- mikera.vectorz.functions.ScalarFunction
-
- All Implemented Interfaces:
- java.lang.Cloneable, ITransform
public abstract class ScalarFunction extends ATransform
Abstract base class for Scalar functions
-
-
Constructor Summary
Constructors Constructor and Description ScalarFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract doublecalculate(AVector input)Calculates the result of this scalar function with the given input vectorintoutputDimensions()Returns the number of dimensions required for output vectorsvoidtransform(AVector src, AVector dest)Transforms the source vector, storing the result in the given destination vector-
Methods inherited from class mikera.transformz.ATransform
calculateElement, clone, compose, composeWith, inputDimensions, inverse, isIdentity, isInvertible, isLinear, isSquare, takeComponents, takeComponents, takeComponents, transform, transform, transformInPlace
-
-
-
-
Method Detail
-
calculate
public abstract double calculate(AVector input)
Calculates the result of this scalar function with the given input vector- Parameters:
input-- Returns:
-
outputDimensions
public int outputDimensions()
Description copied from interface:ITransformReturns the number of dimensions required for output vectors- Specified by:
outputDimensionsin interfaceITransform- Specified by:
outputDimensionsin classATransform- Returns:
-
transform
public void transform(AVector src, AVector dest)
Description copied from interface:ITransformTransforms the source vector, storing the result in the given destination vector- Specified by:
transformin interfaceITransform- Specified by:
transformin classATransform
-
-
DMelt 3.0 © DataMelt by jWork.ORG