Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCharts > FMX.RS.ChartFunction > Classes > TRSFMXCustomChartFunction > Methods

TRSFMXCustomChartFunction.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: FMX.RS.ChartFunction

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