be.ac.ulb.mlg.utils.discretizer
Class UniformWidthDiscretizer

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

public class UniformWidthDiscretizer
extends Object
implements Discretizer

The UniformWidthDiscretizer


Nested Class Summary
 
Nested classes/interfaces inherited from interface be.ac.ulb.mlg.utils.Discretizer
Discretizer.Mode
 
Constructor Summary
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
 
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
 void preprocess(double[][] matrix)
          TODO
 boolean requirePreprocessing()
          TODO
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformWidthDiscretizer

public UniformWidthDiscretizer(Discretizer.Mode mode,
                               int range)
Constructor of UniformDiscretizer which setup the mode and the range of discretization without preprocessing

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

UniformWidthDiscretizer

public UniformWidthDiscretizer(Discretizer.Mode mode,
                               int range,
                               boolean preprocess)
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
specify - if the method has to preprocess (compute measure before normalization, required for GLOBAL Mode)
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

requirePreprocessing

public boolean requirePreprocessing()
Description copied from interface: Discretizer
TODO

Specified by:
requirePreprocessing in interface Discretizer
Returns:

preprocess

public void preprocess(double[][] matrix)
Description copied from interface: Discretizer
TODO

Specified by:
preprocess in interface Discretizer