Table of Contents

Class Integrator

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

Represents an integrator that calculates the sum of float values over a specified window.

[Version(4, 1, 0)]
public sealed class Integrator
Inheritance
Integrator
Inherited Members
Extension Methods

Remarks

The integrator assumes a constant sample rate. Therefore, while technically the integral requires scaling each interval by the time between samples, this constant can be absorbed by PidController, allowing the integrator to focus solely on the sum of values.

Constructors

Integrator(int)

Initializes a new instance of the Integrator class.

Properties

Count

Gets the number of values in this Integrator.

Sum

Gets the sum of the values in the buffer.

Value

Gets or sets the value of this Integrator.