be.ac.ulb.mlg.utils.normalizer
Class UniformFrequencyDiscretizer

java.lang.Object
  extended by be.ac.ulb.mlg.utils.normalizer.UniformFrequencyDiscretizer
All Implemented Interfaces:
Discretizer

public class UniformFrequencyDiscretizer
extends Object
implements Discretizer

The UniformFrequencyDiscretizer


Nested Class Summary
 
Nested classes/interfaces inherited from interface be.ac.ulb.mlg.utils.Discretizer
Discretizer.Mode
 
Constructor Summary
UniformFrequencyDiscretizer(Discretizer.Mode mode, int range)
          Constructor of UniformDiscretizer which setup the mode and the range of discretization
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 matrix
range - The number of value between min/max values of each row/column
Method Detail

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