public class ClipScaling extends Object implements StaticScalingFunction
Modifier and Type | Class and Description |
---|---|
static class |
ClipScaling.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private Double |
max
Field storing the maximum to use
|
static OptionID |
MAX_ID
Parameter to specify the maximum value
Key:
-clipscale.max
|
private Double |
min
Field storing the minimum to use
|
static OptionID |
MIN_ID
Parameter to specify a fixed minimum to use.
|
Constructor and Description |
---|
ClipScaling(Double min,
Double max)
Constructor.
|
public static final OptionID MIN_ID
Key: -clipscale.min
public static final OptionID MAX_ID
Key: -clipscale.max
private Double min
private Double max
public double getScaled(double value)
ScalingFunction
getScaled
in interface ScalingFunction
value
- Original valuepublic double getMin()
ScalingFunction
Double.NaN
or
Double.NEGATIVE_INFINITY
.getMin
in interface ScalingFunction
public double getMax()
ScalingFunction
Double.NaN
or
Double.POSITIVE_INFINITY
.getMax
in interface ScalingFunction
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.