net.sf.myra.datamining.data
Class EntropyContent

java.lang.Object
  extended by net.sf.myra.datamining.data.EntropyContent

public class EntropyContent
extends java.lang.Object

This class provides the entropy information content for a Dataset instance.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
Dataset, DistanceContent

Constructor Summary
EntropyContent(Dataset dataset)
           
 
Method Summary
 boolean contains(java.lang.String label)
          Returns true if the specified label corresponds to a term.
 double entropy(java.lang.String label)
          Returns the entropy associated with the term specified by the label.
 int frequency(java.lang.String label)
          Returns the frequency associated with the term specified by the label.
 java.util.Collection<net.sf.myra.datamining.data.EntropyContent.Term> getTerms()
          Returns the collection of terms of the dataset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntropyContent

public EntropyContent(Dataset dataset)
Method Detail

entropy

public double entropy(java.lang.String label)
Returns the entropy associated with the term specified by the label.

Parameters:
label - the label that represents the term.
Returns:
the entropy associated with the term specified by the label.

frequency

public int frequency(java.lang.String label)
Returns the frequency associated with the term specified by the label.

Parameters:
label - the label that represents the term.
Returns:
the frequency associated with the term specified by the label.

getTerms

public java.util.Collection<net.sf.myra.datamining.data.EntropyContent.Term> getTerms()
Returns the collection of terms of the dataset.

Returns:
the collection of terms of the dataset.

contains

public boolean contains(java.lang.String label)
Returns true if the specified label corresponds to a term.

Parameters:
label - the label to check.
Returns:
true if the specified label corresponds to a term; false otherwise.


Copyright © 2013. All Rights Reserved.