System.Beacon.TMeanCalculator.GetAsInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAsInteger: Integer;

C++

int __fastcall GetAsInteger();

Properties

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

Description

Returns a calculated stabilized value as an Integer.

If the array of T is full, GetAsInteger calls GetMedianAsInteger and returns the calculated median value. If the array of T is not full, GetAsInteger 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