Class AttributeStats
- java.lang.Object
-
- org.processmining.plugins.workshop.Yaguang.WekaDiscriminationTree.AttributeStats
-
- All Implemented Interfaces:
java.io.Serializable
public class AttributeStats extends java.lang.Object implements java.io.SerializableA Utility class that contains summary information on an the values that appear in a dataset for a particular attribute.- Version:
- $Revision: 1.7 $
- Author:
- Len Trigg
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intdistinctCountThe number of distinct valuesintintCountThe number of int-like valuesintmissingCountThe number of missing valuesint[]nominalCountsCounts of each nominal valueweka.experiment.StatsnumericStatsStats on numeric value distributionsintrealCountThe number of real-like values (i.e.inttotalCountThe total number of values (i.e.intuniqueCountThe number of values that only appear once
-
Constructor Summary
Constructors Constructor Description AttributeStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDistinct(double value, int count)Updates the counters for one more observed distinct value.java.lang.StringtoString()Returns a human readable representation of this AttributeStats instance.
-
-
-
Field Detail
-
intCount
public int intCount
The number of int-like values
-
realCount
public int realCount
The number of real-like values (i.e. have a fractional part)
-
missingCount
public int missingCount
The number of missing values
-
distinctCount
public int distinctCount
The number of distinct values
-
uniqueCount
public int uniqueCount
The number of values that only appear once
-
totalCount
public int totalCount
The total number of values (i.e. number of instances)
-
numericStats
public weka.experiment.Stats numericStats
Stats on numeric value distributions
-
nominalCounts
public int[] nominalCounts
Counts of each nominal value
-
-
Method Detail
-
addDistinct
protected void addDistinct(double value, int count)Updates the counters for one more observed distinct value.- Parameters:
value- the value that has just been seencount- the number of times the value appeared
-
toString
public java.lang.String toString()
Returns a human readable representation of this AttributeStats instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- a String represtinging these AttributeStats.
-
-