public class UniformWidthDiscretizer extends java.lang.Object implements Discretizer
Discretizer.Mode| Constructor and Description |
|---|
UniformWidthDiscretizer(Discretizer.Mode mode,
int range)
Constructor of UniformDiscretizer which setup the mode and the range of discretization without preprocessing
|
UniformWidthDiscretizer(Discretizer.Mode mode,
int range,
boolean preprocess)
Constructor of UniformDiscretizer which setup the mode and the range of discretization
|
| Modifier and Type | Method and Description |
|---|---|
double[][] |
discretize(double[][] matrix)
Transform value of a double matrix to integer but preserve the structure (double matrix)
|
boolean |
hasNativeImplementation()
Know if the discretization owns a native implementation
|
void |
preprocess(double[][] matrix)
TODO
|
boolean |
requirePreprocessing()
TODO
|
public UniformWidthDiscretizer(Discretizer.Mode mode, int range)
mode - The mode of discretization column/row wise or by using the whole matrixrange - The number of value between min/max values of each row/columnpublic UniformWidthDiscretizer(Discretizer.Mode mode, int range, boolean preprocess)
mode - The mode of discretization column/row wise or by using the whole matrixrange - The number of value between min/max values of each row/columnspecify - if the method has to preprocess (compute measure before normalization, required for GLOBAL Mode)public double[][] discretize(double[][] matrix)
Discretizerdiscretize in interface Discretizermatrix - The input matrix to be normalizedpublic boolean hasNativeImplementation()
DiscretizerhasNativeImplementation in interface Discretizerpublic boolean requirePreprocessing()
DiscretizerrequirePreprocessing in interface Discretizerpublic void preprocess(double[][] matrix)
Discretizerpreprocess in interface Discretizer