Package weka.core
Class AttributeStats
java.lang.Object
weka.core.AttributeStats
- All Implemented Interfaces:
Serializable
,RevisionHandler
A Utility class that contains summary information on an
the values that appear in a dataset for a particular attribute.
- Version:
- $Revision: 14911 $
- Author:
- Len Trigg
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
The number of distinct valuesint
The number of int-like valuesint
The number of missing valuesint[]
Counts of each nominal valuedouble[]
Weight mass for each nominal valueStats on numeric value distributionsint
The number of real-like values (i.e.int
The total number of values (i.e.int
The number of values that only appear once -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the revision string.toString()
Returns a human readable representation of this AttributeStats instance.
-
Field Details
-
intCount
public int intCountThe number of int-like values -
realCount
public int realCountThe number of real-like values (i.e. have a fractional part) -
missingCount
public int missingCountThe number of missing values -
distinctCount
public int distinctCountThe number of distinct values -
uniqueCount
public int uniqueCountThe number of values that only appear once -
totalCount
public int totalCountThe total number of values (i.e. number of instances) -
numericStats
Stats on numeric value distributions -
nominalCounts
public int[] nominalCountsCounts of each nominal value -
nominalWeights
public double[] nominalWeightsWeight mass for each nominal value
-
-
Constructor Details
-
AttributeStats
public AttributeStats()
-
-
Method Details
-
toString
Returns a human readable representation of this AttributeStats instance. -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-