be.ac.ulb.mlg.utils.normalizer
Class UniformFrequencyDiscretizer
java.lang.Object
be.ac.ulb.mlg.utils.normalizer.UniformFrequencyDiscretizer
- All Implemented Interfaces:
- Discretizer
public class UniformFrequencyDiscretizer
- extends Object
- implements Discretizer
The UniformFrequencyDiscretizer
Method Summary |
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 |
UniformFrequencyDiscretizer
public UniformFrequencyDiscretizer(Discretizer.Mode mode,
int range)
- Constructor of UniformDiscretizer which setup the mode and the range of discretization
- Parameters:
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/column
discretize
public double[][] discretize(double[][] matrix)
- Description copied from interface:
Discretizer
- Transform value of a double matrix to integer but preserve the structure (double matrix)
- Specified by:
discretize
in interface Discretizer
- Parameters:
matrix
- The input matrix to be normalized
- Returns:
- The normalized matrix
hasNativeImplementation
public boolean hasNativeImplementation()
- Description copied from interface:
Discretizer
- Know if the discretization owns a native implementation
- Specified by:
hasNativeImplementation
in interface Discretizer
- Returns:
- True if the discretizer is also natively implemented