
public class OutlierSqrtScaling extends Object implements OutlierScalingFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
OutlierSqrtScaling.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
protected double |
factor
Scaling factor
|
protected Double |
max
Field storing the Maximum value
|
static OptionID |
MAX_ID
Parameter to specify the fixed maximum to use.
|
protected Double |
min
Field storing the minimum value
|
static OptionID |
MIN_ID
Parameter to specify the fixed minimum to use.
|
| Constructor and Description |
|---|
OutlierSqrtScaling(Double min,
Double max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMax()
Get maximum resulting value.
|
double |
getMin()
Get minimum resulting value.
|
double |
getScaled(double value)
Transform a given value using the scaling function.
|
void |
prepare(OutlierResult or)
Prepare is called once for each data set, before getScaled() will be
called.
|
public static final OptionID MIN_ID
Key: -sqrtscale.min
public static final OptionID MAX_ID
Key: -sqrtscale.max
protected Double min
protected Double max
protected double factor
public double getScaled(double value)
ScalingFunctiongetScaled in interface ScalingFunctionvalue - Original valuepublic void prepare(OutlierResult or)
OutlierScalingFunctionprepare in interface OutlierScalingFunctionor - Outlier result to usepublic double getMin()
ScalingFunctionDouble.NaN or
Double.NEGATIVE_INFINITY.getMin in interface ScalingFunctionpublic double getMax()
ScalingFunctionDouble.NaN or
Double.POSITIVE_INFINITY.getMax in interface ScalingFunction