IRISLIB database
Median Class Reference
Inheritance diagram for Median:
Collaboration diagram for Median:

Public Member Functions

_.Library.Double GetResult (_.Library.Status pStatus)
 Returns the median. More...
 
- Public Member Functions inherited from aggregate
_.Library.Status ProcessValue (_.Library.Double pValue)
 ProcessValue is called sequentially on each value in a target set. More...
 
- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 

Private Member Functions

 __partition (left, right, pivotIndex)
 Finds the partition point.
 
 __select (k, left, right)
 Selects the kth smallest element in the set of values.
 

Additional Inherited Members

- Public Attributes inherited from aggregate
 Count
 Keeps a running count of values processed. More...
 
 data
 Array of processed values. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Member Function Documentation

◆ GetResult()

_.Library.Double GetResult ( _.Library.Status  pStatus)

Returns the median.

Returns "" for an empty data set.

Uses a divide and conquer selection algorithm.

Reimplemented from aggregate.