public class ClipScaling extends java.lang.Object implements StaticScalingFunction
Modifier and Type | Class and Description |
---|---|
static class |
ClipScaling.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
max
Field storing the maximum to use
|
static OptionID |
MAX_ID
Parameter to specify the maximum value
|
private java.lang.Double |
min
Field storing the minimum to use
|
static OptionID |
MIN_ID
Parameter to specify a fixed minimum to use.
|
Constructor and Description |
---|
ClipScaling(java.lang.Double min,
java.lang.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.
|
public static final OptionID MIN_ID
public static final OptionID MAX_ID
private java.lang.Double min
private java.lang.Double max
public ClipScaling(java.lang.Double min, java.lang.Double max)
min
- Minimum, may be nullmax
- Maximum, may be nullpublic 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 © 2019 ELKI Development Team. License information.