Home > Class Reference > %SYS namespace > %ZEN.Report.Aggregate.Mode

%ZEN.Report.Aggregate.Mode

class %ZEN.Report.Aggregate.Mode extends %ZEN.Report.CustomAggregate

Aggregate for computing the statistical mode (most frequent observation) of a set of data

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property Counts as array of %Integer;
Number of observations indexed by value
Property methods: CountsBuildValueArray(), CountsCollectionToDisplay(), CountsCollectionToOdbc(), CountsDisplayToCollection(), CountsDisplayToLogical(), CountsGet(), CountsGetObject(), CountsGetObjectId(), CountsGetSwizzled(), CountsIsValid(), CountsLogicalToDisplay(), CountsNormalize(), CountsOdbcToCollection(), CountsSet(), CountsSetObject(), CountsSetObjectId(), CountsXSDToLogical()
property MaxCount as %Integer [ InitialExpression = 0 ];
Largest count seen so far
Property methods: MaxCountDisplayToLogical(), MaxCountGet(), MaxCountIsValid(), MaxCountLogicalToDisplay(), MaxCountNormalize(), MaxCountSet(), MaxCountValuesDisplayToLogical(), MaxCountValuesGet(), MaxCountValuesIsValid(), MaxCountValuesLogicalToDisplay(), MaxCountValuesLogicalToOdbc(), MaxCountValuesNormalize(), MaxCountValuesSet(), MaxCountXSDToLogical()
property MaxCountValues as %String;
List of values that have occured MaxCount times.
Property methods: MaxCountValuesDisplayToLogical(), MaxCountValuesGet(), MaxCountValuesIsValid(), MaxCountValuesLogicalToDisplay(), MaxCountValuesLogicalToOdbc(), MaxCountValuesNormalize(), MaxCountValuesSet()

Methods (Including Private)

classmethod %PostProcessValue(result As %String, postprocessResult As %Boolean, runtimeMode As %Integer, ignoreNLS As %Boolean) [ Language = objectscript ]
method GetResult() as %String [ Language = objectscript ]
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 [ Language = objectscript ]
Processes each new value

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)