|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.data.EntropyContent
public class EntropyContent
This class provides the entropy information content for a
Dataset
instance.
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 |
---|
public EntropyContent(Dataset dataset)
Method Detail |
---|
public double entropy(java.lang.String label)
label
- the label that represents the term.
public int frequency(java.lang.String label)
label
- the label that represents the term.
public java.util.Collection<net.sf.myra.datamining.data.EntropyContent.Term> getTerms()
public boolean contains(java.lang.String label)
true
if the specified label corresponds to a term.
label
- the label to check.
true
if the specified label corresponds to a term;
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |