net.sf.myra.antree
Class EntropyHelper

java.lang.Object
  extended by net.sf.myra.antree.EntropyHelper

public class EntropyHelper
extends java.lang.Object

Version:
$Revision: 2349 $ $Date:: 2011-09-14 17:07:02#$
Author:
Fernando Esteban Barril Otero

Constructor Summary
EntropyHelper(net.sf.myra.datamining.data.Dataset dataset)
          Default constructor.
EntropyHelper(net.sf.myra.datamining.data.Metadata metadata, java.util.List<net.sf.myra.datamining.data.Instance> instances)
           
 
Method Summary
 double gain(net.sf.myra.datamining.data.Attribute attribute)
          Returns the gain of the specified attribute.
 double gainRatio(net.sf.myra.datamining.data.Attribute attribute)
          Returns the gain ratio of the specified attribute.
 double maximum()
          Returns the maximum (worse) possible entropy value.
 boolean verify(net.sf.myra.datamining.data.Attribute attribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntropyHelper

public EntropyHelper(net.sf.myra.datamining.data.Dataset dataset)
Default constructor.

Parameters:
dataset - the data set instance.

EntropyHelper

public EntropyHelper(net.sf.myra.datamining.data.Metadata metadata,
                     java.util.List<net.sf.myra.datamining.data.Instance> instances)
Method Detail

maximum

public double maximum()
Returns the maximum (worse) possible entropy value.

Returns:
the maximum (worse) possible entropy value.

gain

public double gain(net.sf.myra.datamining.data.Attribute attribute)
Returns the gain of the specified attribute.

Parameters:
attribute - the attribute to determine the gain value.
Returns:
the gain of the specified attribute.

gainRatio

public double gainRatio(net.sf.myra.datamining.data.Attribute attribute)
Returns the gain ratio of the specified attribute.

Parameters:
attribute - the attribute to determine the gain ratio value.
Returns:
the gain ratio of the specified attribute.

verify

public boolean verify(net.sf.myra.datamining.data.Attribute attribute)


Copyright © 2013. All Rights Reserved.