Show / Hide Table of Contents

Class MyMovingAverage

Inheritance
System.Object
MyMovingAverage
Namespace: VRageMath
Assembly: VRage.Math.dll
Syntax
public class MyMovingAverage : Object

Constructors

MyMovingAverage(Int32, Int32)

Declaration
public MyMovingAverage(int windowSize, int enqueueCountToReset = 1000)
Parameters
Type Name Description
System.Int32 windowSize
System.Int32 enqueueCountToReset

Properties

Avg

Declaration
public float Avg { get; }
Property Value
Type Description
System.Single

Sum

Declaration
public double Sum { get; }
Property Value
Type Description
System.Double

Methods

Enqueue(Single)

Declaration
public void Enqueue(float value)
Parameters
Type Name Description
System.Single value

Reset()

Declaration
public void Reset()
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾