class %ZEN.Report.Aggregate.Mode
extends %ZEN.Report.CustomAggregate
Aggregate for computing the statistical mode (most frequent observation)
of a set of data
property Counts
as array of %Integer [ InitialExpression = 0 ];
Number of observations indexed by value
property MaxCount
as %Integer [ InitialExpression = 0 ];
Largest count seen so far
property MaxCountValues
as %String;
List of values that have occured MaxCount times.
method GetResult()
as %String
Returns the mode of the data set. If the data set was empty, "" is returned.
If there is no unique mode, the number of values occurring most frequently is
returned, as well as how many times these values occurred.
method ProcessValue(pValue As %String)
as %Status
Processes each new value