mikera.transformz.impl
Class SubsetTransform
- java.lang.Object
-
- mikera.transformz.ATransform
-
- mikera.transformz.impl.SubsetTransform
-
- All Implemented Interfaces:
- java.lang.Cloneable, ITransform
public final class SubsetTransform extends ATransform
Transform wrapper that produces a subset of the output components of another transform
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateElement(int i, AVector source)Calculates a single element of the output.static SubsetTransformcreate(ATransform trans, Index components)static SubsetTransformcreate(SubsetTransform trans, Index components)intinputDimensions()Returns the number of dimensions required for input vectorsintoutputDimensions()Returns the number of dimensions required for output vectorsvoidtransform(AVector source, AVector dest)Transforms the source vector, storing the result in the given destination vector-
Methods inherited from class mikera.transformz.ATransform
clone, compose, composeWith, inverse, isIdentity, isInvertible, isLinear, isSquare, takeComponents, takeComponents, takeComponents, transform, transform, transformInPlace
-
-
-
-
Method Detail
-
create
public static SubsetTransform create(ATransform trans, Index components)
-
create
public static SubsetTransform create(SubsetTransform trans, Index components)
-
calculateElement
public double calculateElement(int i, AVector source)Description copied from class:ATransformCalculates a single element of the output. Not necessarily faster than calculating full output, but can be in some circumstances.- Overrides:
calculateElementin classATransform
-
transform
public void transform(AVector source, 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
-
inputDimensions
public int inputDimensions()
Description copied from interface:ITransformReturns the number of dimensions required for input vectors- Specified by:
inputDimensionsin interfaceITransform- Specified by:
inputDimensionsin classATransform- 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:
-
-
DMelt 3.0 © DataMelt by jWork.ORG