Skip to main content

%DeepSee.Aggregate.Percentile

Class %DeepSee.Aggregate.Percentile Extends aggregate [ System = 4 ]

Properties

percentile

Property percentile As %Double;

SortedValues

Property SortedValues [ MultiDimensional ];

Sorted array of processed values

Methods

ProcessValue

Method ProcessValue(pValue As %Double) As %Status

ProcessValue is called sequentially on each value in a target set. This sorts the values by filing them into the SortedValues array with the incoming value as the first subscript.

GetResult

Method GetResult(Output pStatus As %Status) As %Double

Returns the percentile. Returns "" for an empty data set.