DefaultLinearTransformation
public DefaultLinearTransformation(double oldMeanOrMin,
double newMeanOrMin,
double oldSdOrMax,
double newSdOrMax,
LinearTransformationType linearTransformationType)
Constructor for two different ways of creating the transformation coefficients.
When linearTransformationType==MEAN_STANDARD_DEVIATION the transformation uses the new and old mean
and standard deviation to compute the coefficients. When linearTransformationType==MIN_MAX the transformation
uses the new and old min and max values t compute the transformation coefficients.
The new mean and new standard deviation are the desired mean and standard deviation of the scale. Values
will be transformed to have this mean and standard deviation. Likewise, the new min and new max are the
desired minimum and desired maximum values of the scale. Original values will be transformed to have these
min and max values.
- Parameters:
oldMeanOrMin
- either the old mean or the old minimum
newMeanOrMin
- either the new mean or the new minimum
oldSdOrMax
- either the old standard deviation or the old maximum
newSdOrMax
- either the new standard deviation or the new maximum
linearTransformationType
- method of computing the linear transformation