Package xal.tools.transforms
Class DataTransformFactory
java.lang.Object
xal.tools.transforms.DataTransformFactory
Factory for instantiating DataTransforms implementing common transformations
such as linear, scale and offset transformations.
- Author:
- tap
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of ValueTransformFactory -
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleArrayTransform
doubleArrayLinearTransform
(double scale, double offset) Convert a double precision array with a simple linear conversionstatic DoubleArrayTransform
doubleArrayScaleTransform
(double scale) Convert a double precision array with a simple scale conversionstatic DoubleArrayTransform
doubleArrayTranslationTransform
(double offset) Convert a double precision array with a simple translation conversionstatic DoubleTransform
doubleLinearTransform
(double scale, double offset) Convert double values with a simple linear conversionstatic DoubleTransform
doubleScaleTransform
(double scale) Convert double values with a simple scale conversionstatic DoubleTransform
doubleTranslationTransform
(double offset) Convert double values with a simple translation conversionstatic DataTransform
Transform that does nothing.
-
Constructor Details
-
DataTransformFactory
protected DataTransformFactory()Creates a new instance of ValueTransformFactory
-
-
Method Details
-
noOperationTransform
Transform that does nothing. Suitable as a default transform. -
doubleScaleTransform
Convert double values with a simple scale conversion -
doubleTranslationTransform
Convert double values with a simple translation conversion -
doubleLinearTransform
Convert double values with a simple linear conversion -
doubleArrayScaleTransform
Convert a double precision array with a simple scale conversion -
doubleArrayTranslationTransform
Convert a double precision array with a simple translation conversion -
doubleArrayLinearTransform
Convert a double precision array with a simple linear conversion
-