Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCharting > RSChartFunction > Classes > TRSCustomChartFunction > Methods

TRSCustomChartFunction.Median(TRSCustomChart,Integer,Integer,TDateTime,Integer) Method

Scroll Prev Top Next More

Calculates the median of all values from IndexLow to IndexHigh in the SourceChart and returns the median. The function also returns the timestamp of the median value if the SourceChart contains timestamps (SourceChart.Values.IsDateTime=True)

Namespace: RSChartFunction

Parameters

SourceChart

Type: TRSCustomChart

Chart to calculate the median from

IndexLow

Type: Integer

Lower bounds index into the SourceChart

IndexHigh

Type: Integer

Upper bounds index into the SourceChart
 

TimeStamp

Type: TDateTime

TimeStamp of the new value

SourceDim

Type: Integer

Return Value

Type: TRSChartValueType

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb