public class AttributeStats
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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
|
int |
realCount
The number of real-like values (i.e. have a fractional part)
|
Stats |
realStats
Stats on numeric value distributions
|
int |
totalCount
The total number of values (i.e. number of instances)
|
int |
uniqueCount
The number of values that only appear once
|
Constructor and Description |
---|
AttributeStats() |
Modifier and Type | Method and Description |
---|---|
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.
|
public int intCount
public int realCount
public int missingCount
public int distinctCount
public int uniqueCount
public int totalCount
public Stats realStats
public int[] nominalCounts
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()
toString
in class java.lang.Object