DocBook|Search
Class Reference
%ZEN.Report.Aggregate.Mode
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%ZEN] >  [Report] >  [Aggregate] >  [Mode]
Private  Storage  

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

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 2


Summary

Properties
Counts MaxCount MaxCountValues accumIf class
escape excelFormula excelName expression field
fields format name type uniqueId

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject GetResult ProcessValue XMLDTD
XMLExport XMLExportToStream XMLExportToString XMLNew
XMLSchema XMLSchemaNamespace XMLSchemaType fieldIsValid
nameIsValid


Properties

• 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.

Methods

• 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