TiPlotChannelCustom.GetYMean

TiPlotChannelCustom

Used to get the mean y data value in a channel's dataset.

function GetYMean() : Double;

Description

Use the GetYMean method to get the mean (average) y data value for all of the existing data points that in the buffer of this channel.

Note: If you are using a ring buffer or if you clear out old historical data from the buffer, then those deleted data points will not be used in this calculation.

Example

Delphi

Value := iComponent.Channel[0].GetYMean();

C++ Builder

Value = iComponent->Channel[0]->GetYMean();

Contents | Index | Previous | Next