Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%ZEN] >  [Report] >  [Aggregate] >  [Median]
Private  Storage   

deprecatedclass %ZEN.Report.Aggregate.Median extends %ZEN.Report.CustomAggregate

Aggregate for the median of a set of numerical data. The median is a number with half of the data set of greater value than it, and half of lesser value. For a data set with an odd size, the median is a member of the data set. For a data set with an even size, the median is half-way between two members of the data set.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 5


Summary

Properties
Count Values accumIf class
escape excelFormula excelName excelNumberFormat
expression field fields filter
format ignoreNLS name postprocessResult
preprocessValue runtimeMode type uniqueId

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


Properties

• property Count as %Integer [ InitialExpression = 0 ];
Number of values processed
• property Values as array of %Integer;
Array of processed values

Methods

• method GetResult() as %String
Returns the median. Returns "" for an empty data set. Uses a divide and conquer selection algorithm.
• method ProcessValue(pValue As %Float) as %Status
Processes each new value.


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.