System.Beacon.TMeanCalculator.GetAsDouble

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAsDouble: Double;

C++

double __fastcall GetAsDouble();

Properties

Type Visibility Source Unit Parent
function public
System.Beacon.pas
System.Beacon.hpp
System.Beacon TMeanCalculator

Description

Returns a calculated stabilized value as a Double.

If the array of T is full, GetAsDouble calls GetMedianAsDouble and returns the calculated median value. If the array of T is not full, GetAsDouble calculates the mean of the array of T and returns the calculated value.

This improves the accuracy of the calculated value when the beacon is moving. You can set the size of the array of T in the constructor.

Get calls this function.

See Also