public class LinearEnhancement extends EnhancementFunction
range, reverse
Constructor and Description |
---|
LinearEnhancement(double[] range)
Constructs a linear enhancement from the data value range.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Gets a description of the function.
|
double |
evaluate(double[] variables)
Evaluates the enhancement at the specified data value.
|
double |
getInverse(double normValue)
Gets the inverse enhancement value.
|
protected void |
reset()
Resets the enhancement function.
|
clone, equals, getRange, getReverse, getValue, normalize, setRange, setReverse
getEncoding, useEncoding
public LinearEnhancement(double[] range)
range
- the enhancement range as [min, max].public double getInverse(double normValue)
EnhancementFunction
getInverse
in class EnhancementFunction
normValue
- the normalized data value.public double evaluate(double[] variables)
EnhancementFunction.getValue(double)
method should be used instead of this method
for evaluating enhancement values.protected void reset()
reset
in class EnhancementFunction
public java.lang.String describe()
EnhancementFunction
describe
in class EnhancementFunction