|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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.
| Nested Class Summary | |
|---|---|
static class |
ClipScaling.Parameterizer
Parameterization class. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ClipScaling(Double min,
Double max)
Constructor. |
|
| 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
Key: -clipscale.min
public static final OptionID MAX_ID
Key: -clipscale.max
private Double min
private Double max
| Constructor Detail |
|---|
public ClipScaling(Double min,
Double max)
min - Minimum, may be nullmax - Maximum, may be null| Method Detail |
|---|
public double getScaled(double value)
ScalingFunction
getScaled in interface ScalingFunctionvalue - Original value
public double getMin()
ScalingFunctionDouble.NaN or
Double.NEGATIVE_INFINITY.
getMin in interface ScalingFunctionpublic double getMax()
ScalingFunctionDouble.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 | |||||||||||