PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.RunningAverage Class Reference

Provides a convenience class to keep a running average of values without storing the values in memory. More...

Public Member Functions

void Add (params decimal[] value)
 Add a value to the pool.

Properties

decimal Average [get]
 Provides the current average.
int Count [get]
 Provides a count of items that have been added.

Detailed Description

Provides a convenience class to keep a running average of values without storing the values in memory.

Member Function Documentation

◆ Add()

void PeanutButter.Utils.RunningAverage.Add ( params decimal[] value)

Add a value to the pool.

  • recalculates the average, discards the value
Parameters
value

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/RunningAverage.cs