public class DefaultLinearTransformation extends java.lang.Object implements LinearTransformation
| Constructor and Description |
|---|
DefaultLinearTransformation() |
DefaultLinearTransformation(double intercept,
double scale) |
DefaultLinearTransformation(java.lang.Double oldMean,
java.lang.Double newMean,
java.lang.Double oldSd,
java.lang.Double newSd) |
DefaultLinearTransformation(double oldMeanOrMin,
double newMeanOrMin,
double oldSdOrMax,
double newSdOrMax,
LinearTransformationType linearTransformationType)
Constructor for two different ways of creating the transformation coefficients.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getIntercept() |
double |
getScale() |
void |
setIntercept(double intercept) |
void |
setScale(double scale) |
void |
setScaleAndIntercept(double oldMean,
double newMean,
double oldSd,
double newSd) |
java.lang.String |
toString() |
double |
transform(double x) |
public DefaultLinearTransformation(java.lang.Double oldMean,
java.lang.Double newMean,
java.lang.Double oldSd,
java.lang.Double newSd)
public DefaultLinearTransformation(double oldMeanOrMin,
double newMeanOrMin,
double oldSdOrMax,
double newSdOrMax,
LinearTransformationType linearTransformationType)
oldMeanOrMin - either the old mean or the old minimumnewMeanOrMin - either the new mean or the new minimumoldSdOrMax - either the old standard deviation or the old maximumnewSdOrMax - either the new standard deviation or the new maximumlinearTransformationType - method of computing the linear transformationpublic DefaultLinearTransformation(double intercept,
double scale)
public DefaultLinearTransformation()
public void setScale(double scale)
public void setScaleAndIntercept(double oldMean,
double newMean,
double oldSd,
double newSd)
public void setIntercept(double intercept)
public double getIntercept()
getIntercept in interface LinearTransformationpublic double getScale()
getScale in interface LinearTransformationpublic double transform(double x)
transform in interface LinearTransformationpublic java.lang.String toString()
toString in class java.lang.Object