C# Класс FlatRedBall.Math.RollingAverage

A class which can be used to store and calculate rolling averages for regular numbers and radians.
Показать файл Открыть проект

Открытые методы

Метод Описание
AddValue ( float value ) : void

Adds a value to the RollingAverage. The oldest value is discarded if the Capacity has been reached.

Clear ( ) : void
RollingAverage ( int capacity ) : System

Creates a new RolllingAverage with capacity equalling the argument capacity value.

Описание методов

AddValue() публичный Метод

Adds a value to the RollingAverage. The oldest value is discarded if the Capacity has been reached.
public AddValue ( float value ) : void
value float The value to add.
Результат void

Clear() публичный Метод

public Clear ( ) : void
Результат void

RollingAverage() публичный Метод

Creates a new RolllingAverage with capacity equalling the argument capacity value.
public RollingAverage ( int capacity ) : System
capacity int The maximum number of values that the RollingAverage can store.
Результат System