|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.AttributeStats
A Utility class that contains summary information on an the values that appear in a dataset for a particular attribute.
Field Summary | |
int |
distinctCount
The number of distinct values |
int |
intCount
The number of int-like values |
int |
missingCount
The number of missing values |
int[] |
nominalCounts
Counts of each nominal value |
Stats |
numericStats
Stats on numeric value distributions |
int |
realCount
The number of real-like values (i.e. have a fractional part) |
int |
totalCount
The total number of values (i.e. number of instances) |
int |
uniqueCount
The number of values that only appear once |
Constructor Summary | |
AttributeStats()
|
Method Summary | |
protected void |
addDistinct(double value,
int count)
Updates the counters for one more observed distinct value. |
java.lang.String |
toString()
Returns a human readable representation of this AttributeStats instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int intCount
public int realCount
public int missingCount
public int distinctCount
public int uniqueCount
public int totalCount
public Stats numericStats
public int[] nominalCounts
Constructor Detail |
public AttributeStats()
Method Detail |
protected void addDistinct(double value, int count)
value
- the value that has just been seencount
- the number of times the value appearedpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |