|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.data.DistanceContent
public class DistanceContent
This class provides the distance information content for a
Dataset
instance.
Dataset
,
EntropyContent
Constructor Summary | |
---|---|
DistanceContent(Dataset dataset)
Default constructor. |
Method Summary | |
---|---|
boolean |
contains(java.lang.String label)
Returns true if the specified label corresponds to a term. |
double |
maximum()
Returns the maximum (worst case) variance value. |
static double |
variance(java.util.List<Instance> instances)
Returns the variance of the list of instances' class labels. |
static double |
variance(java.util.List<Instance> instances,
double[] mean)
Returns the variance of the list of instances and the mean class label array. |
double |
variance(java.lang.String label)
Returns the variance associated with the specified term. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistanceContent(Dataset dataset)
dataset
- the dataset reference.Method Detail |
---|
public double variance(java.lang.String label)
label
- the label of the term.
public double maximum()
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.public static double variance(java.util.List<Instance> instances)
instances
- the list of instances.
public static double variance(java.util.List<Instance> instances, double[] mean)
instances
- the list of instances.mean
- the mean class label array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |