|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.scaling.ClipScaling
public class ClipScaling
Scale implementing a simple clipping. Values less than the specified minimum will be set to the minimum, values larger than the maximum will be set to the maximum.
Field Summary | |
---|---|
private Double |
max
Field storing the maximum to use |
static OptionID |
MAX_ID
OptionID for MAX_PARAM |
private DoubleParameter |
MAX_PARAM
Parameter to specify the maximum value Key: -clipscale.max
|
private Double |
min
Field storing the minimum to use |
static OptionID |
MIN_ID
OptionID for MIN_PARAM |
private DoubleParameter |
MIN_PARAM
Parameter to specify a fixed minimum to use. |
Constructor Summary | |
---|---|
ClipScaling(Parameterization config)
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
double |
getMax()
Get maximum resulting value. |
double |
getMin()
Get minimum resulting value. |
double |
getScaled(double value)
Transform a given value using the scaling function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OptionID MIN_ID
MIN_PARAM
private final DoubleParameter MIN_PARAM
Key: -clipscale.min
public static final OptionID MAX_ID
MAX_PARAM
private final DoubleParameter MAX_PARAM
Key: -clipscale.max
private Double min
private Double max
Constructor Detail |
---|
public ClipScaling(Parameterization config)
Parameterizable
config
- ParameterizationMethod Detail |
---|
public double getScaled(double value)
ScalingFunction
getScaled
in interface ScalingFunction
value
- Original value
public 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
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |