System.Beacon.TMeanCalculator
Delphi
TMeanCalculator<T> = record
private
FSize: Integer;
FCenter: Integer;
FIsEmpty: Boolean;
ArrayRatio: array of T;
Index: Integer;
IsFull: Boolean;
procedure SetSize(ASize: Integer);
procedure AddValue(AValue: T);
public
constructor Create(const ASize: Integer);
procedure Reset;
function GetAsDouble: Double;
function GetAsInteger: Integer;
function GetMedianAsDouble: Double;
function GetMedianAsInteger: Integer;
function GetLast: T;
function Get: T;
function AddGetValue(AValue: T; IsMoving: Boolean): T;
function IsEmpty: Boolean;
end;
C++
template<typename T> struct DECLSPEC_DRECORD TMeanCalculator__1
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
record struct |
public | System.Beacon.pas System.Beacon.hpp |
System.Beacon | System.Beacon |
説明
Rssi の安定化値を取得するのに使用できるメソッドが用意されているレコードです。TMeanCalculator は、Integer または Double を T
として受け取るテンプレート レコードです。
使用可能なメソッドで行えることは、T
の配列の作成またはリセット、T
の配列に含まれている現在値からの平均値または中央値の計算、T
の配列が空かどうかの確認です。
関連項目
- System.Beacon.TMeanCalculator.Get
- System.Beacon.TMeanCalculator.GetAsInteger
- System.Beacon.TMeanCalculator.GetAsDouble
- System.Beacon.TMeanCalculator.GetMedianAsInteger
- System.Beacon.TMeanCalculator.GetMedianAsDouble
- System.Beacon.TMeanCalculator.AddGetValue
- System.Beacon.TMeanCalculator.GetLast
- System.Beacon.TMeanCalculator.IsEmpty
- System.Beacon.TMeanCalculator.Create
- System.Beacon.TMeanCalculator.Reset