textclassifier.discretization
Class SimpleD

java.lang.Object
  extended by textclassifier.discretization.SimpleD

public class SimpleD
extends java.lang.Object

A class containing implementation of numeric attributes discretization


Constructor Summary
SimpleD()
          Constructor of the class
 
Method Summary
static java.util.ArrayList<DiscInterval> cprocess(double[] numbers, int ivals, int ivalsize, int pocet)
          Executes the adaptive method of numerical attributes merging for discretization (!!!
static java.util.ArrayList<DiscInterval> process(double[] numbers, int ivals, int ivalsize)
          Executes the sipmle discretization method (equi-width)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleD

public SimpleD()
Constructor of the class

Method Detail

cprocess

public static java.util.ArrayList<DiscInterval> cprocess(double[] numbers,
                                                         int ivals,
                                                         int ivalsize,
                                                         int pocet)
Executes the adaptive method of numerical attributes merging for discretization (!!! nevyuzite ivals...)

Parameters:
numbers - all values of discretized attribute
pocet - count of various values of the attribute
Returns:
array of discretized intervals

process

public static java.util.ArrayList<DiscInterval> process(double[] numbers,
                                                        int ivals,
                                                        int ivalsize)
Executes the sipmle discretization method (equi-width)

Parameters:
numbers - all values of discretized attribute
ivals - count of intervals to create by discretization
ivalsize - a given value of interval width
Returns:
array of discretized intervals