Class DataTransformFactory

java.lang.Object
xal.tools.transforms.DataTransformFactory

public class DataTransformFactory extends Object
Factory for instantiating DataTransforms implementing common transformations such as linear, scale and offset transformations.
Author:
tap
  • Constructor Details

    • DataTransformFactory

      protected DataTransformFactory()
      Creates a new instance of ValueTransformFactory
  • Method Details

    • noOperationTransform

      public static DataTransform noOperationTransform()
      Transform that does nothing. Suitable as a default transform.
    • doubleScaleTransform

      public static DoubleTransform doubleScaleTransform(double scale)
      Convert double values with a simple scale conversion
    • doubleTranslationTransform

      public static DoubleTransform doubleTranslationTransform(double offset)
      Convert double values with a simple translation conversion
    • doubleLinearTransform

      public static DoubleTransform doubleLinearTransform(double scale, double offset)
      Convert double values with a simple linear conversion
    • doubleArrayScaleTransform

      public static DoubleArrayTransform doubleArrayScaleTransform(double scale)
      Convert a double precision array with a simple scale conversion
    • doubleArrayTranslationTransform

      public static DoubleArrayTransform doubleArrayTranslationTransform(double offset)
      Convert a double precision array with a simple translation conversion
    • doubleArrayLinearTransform

      public static DoubleArrayTransform doubleArrayLinearTransform(double scale, double offset)
      Convert a double precision array with a simple linear conversion