net.sf.myra.datamining.data
Class MDLEntropyIntervalBuilder

java.lang.Object
  extended by net.sf.myra.datamining.data.IntervalBuilder
      extended by net.sf.myra.datamining.data.AbstractEntropyBasedBuilder
          extended by net.sf.myra.datamining.data.MDLEntropyIntervalBuilder

public class MDLEntropyIntervalBuilder
extends AbstractEntropyBasedBuilder

Minimum Description Length Principle (MDLP) interval builder. In essence, this class uses the entropy builder in combination of a MDL stopping criteria to create (potentially) multiple intervals.

Version:
$Revision: 2070 $ $Date:: 2009-03-16 16:09:23#$
Author:
Fernando Esteban Barril Otero

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.myra.datamining.data.IntervalBuilder
IntervalBuilder.CutPoint, IntervalBuilder.Interval
 
Field Summary
 
Fields inherited from class net.sf.myra.datamining.data.IntervalBuilder
BUILDER, DEFAULT_BUILDER, metadata, MINIMUM, minimumLimit
 
Constructor Summary
MDLEntropyIntervalBuilder(Metadata metadata)
          Default constructor.
 
Method Summary
protected  IntervalBuilder.CutPoint[] create(double[][] matrix, int classes, boolean filter)
          Returns a list of cut points using the MDLPC criterion.
 
Methods inherited from class net.sf.myra.datamining.data.AbstractEntropyBasedBuilder
average, count, create, create, createSingle, createSingle, diversity, entropy, sort, weightedLength
 
Methods inherited from class net.sf.myra.datamining.data.IntervalBuilder
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDLEntropyIntervalBuilder

public MDLEntropyIntervalBuilder(Metadata metadata)
Default constructor.

Parameters:
metadata - the dataset metadata.
Method Detail

create

protected IntervalBuilder.CutPoint[] create(double[][] matrix,
                                            int classes,
                                            boolean filter)
Returns a list of cut points using the MDLPC criterion.

Specified by:
create in class AbstractEntropyBasedBuilder
Parameters:
matrix - the (values,class) distribution.
classes - the total number of class values.
filter - indicated if the cut points should be filtered. When filtering cut points, it is guarenteed that this method will return 1 or 2 values and when 2 values is returned, the interval to be selected should be the one between the two values.
Returns:
a list of cut points using the MDLPC criterion.


Copyright © 2013. All Rights Reserved.