gov.sns.tools.transforms
Class DataTransformFactory

java.lang.Object
  |
  +--gov.sns.tools.transforms.DataTransformFactory

public class DataTransformFactory
extends java.lang.Object

Factory for instantiating DataTransforms implementing common transformations such as linear, scale and offset transformations.


Constructor Summary
protected DataTransformFactory()
          Creates a new instance of ValueTransformFactory
 
Method Summary
static DoubleArrayTransform doubleArrayLinearTransform(double scale, double offset)
          Convert a double precision array with a simple linear conversion
static DoubleArrayTransform doubleArrayScaleTransform(double scale)
          Convert a double precision array with a simple scale conversion
static DoubleArrayTransform doubleArrayTranslationTransform(double offset)
          Convert a double precision array with a simple translation conversion
static DoubleTransform doubleLinearTransform(double scale, double offset)
          Convert double values with a simple linear conversion
static DoubleTransform doubleScaleTransform(double scale)
          Convert double values with a simple scale conversion
static DoubleTransform doubleTranslationTransform(double offset)
          Convert double values with a simple translation conversion
static DataTransform noOperationTransform()
          Transform that does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTransformFactory

protected DataTransformFactory()
Creates a new instance of ValueTransformFactory

Method Detail

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