Interface Transform
- All Known Subinterfaces:
ComponentMapping, InvertibleTransform, Mixed, Slicing, Translation
- All Known Implementing Classes:
AbstractMixedTransform, AbstractPermutationTransform, AbstractShearTransform, ComponentMappingTransform, InverseShearTransform, InverseTransform, MixedTransform, PermutationTransform, SequentializeTransform, ShearTransform, SingleDimensionPermutationTransform, SlicingTransform, TranslationTransform, TranslationTransform.InverseTranslationTransform
public interface Transform
Transformation from Zn to Zm.
Applying the transformation to a n-dimensional integer source vector yields a m-dimensional integer target vector.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(int[] source, int[] target) Apply theTransformto a source vector to obtain a target vector.voidapply(long[] source, long[] target) Apply theTransformto a source vector to obtain a target vector.voidapply(Localizable source, Positionable target) intReturns n, the dimension of the source vector.intReturns m, the dimension of the target vector.
-
Method Details
-
numSourceDimensions
int numSourceDimensions()Returns n, the dimension of the source vector.- Returns:
- the dimension of the source vector.
-
numTargetDimensions
int numTargetDimensions()Returns m, the dimension of the target vector.- Returns:
- the dimension of the target vector.
-
apply
void apply(long[] source, long[] target) Apply theTransformto a source vector to obtain a target vector.- Parameters:
source- source coordinates.target- set this to the target coordinates.
-
apply
void apply(int[] source, int[] target) Apply theTransformto a source vector to obtain a target vector.- Parameters:
source- source coordinates.target- set this to the target coordinates.
-
apply
- Parameters:
source- source coordinates.target- set this to the target coordinates.
-