Method | Description | |
---|---|---|
Clear ( ) : void |
Clear the buffer and reset the total.
|
|
Dequeue ( ) : double |
Remove the oldest value from the back end of the buffer and return it.
|
|
DoubleCircularBufferWithStats ( int capacity ) : System |
Constructs a circular buffer with the specified capacity.
|
|
Enqueue ( double item ) : void |
Enqueue a new value. This overwrites the oldest value in the buffer if the buffer has reached capacity.
|
|
Pop ( ) : double |
Pop the most recently added value from the front end of the buffer and return it.
|
public DoubleCircularBufferWithStats ( int capacity ) : System | ||
capacity | int | |
return | System |