public class StepEnhancement extends LinearEnhancement
range, reverse
Constructor and Description |
---|
StepEnhancement(double[] range,
double step)
Constructs a step enhancement from the specified parameters.
|
StepEnhancement(double[] range,
int steps)
Constructs a step enhancement from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Gets a description of the function.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
double |
evaluate(double[] variables)
Evaluates the enhancement at the specified data value.
|
int |
getSteps()
Gets the number of steps in the enhancement.
|
getInverse, reset
clone, getRange, getReverse, getValue, normalize, setRange, setReverse
getEncoding, useEncoding
public StepEnhancement(double[] range, double step)
range
- the enhancement range as [min, max].step
- the data value step size. The range between the
minimum and maximum is divided up into discrete steps of this
size.public StepEnhancement(double[] range, int steps)
range
- the enhancement range as [min, max].steps
- the number of data steps in the range.public double evaluate(double[] variables)
LinearEnhancement
EnhancementFunction.getValue(double)
method should be used instead of this method
for evaluating enhancement values.evaluate
in class LinearEnhancement
variables
- a double[1] specifying the data value.public int getSteps()
public boolean equals(java.lang.Object obj)
equals
in class EnhancementFunction
public java.lang.String describe()
EnhancementFunction
describe
in class LinearEnhancement