C# Class SharpNeat.Domains.DoublePoleBalancing.JiggleBuffer

This is a circular buffer of double precision floating point numbers, customised for use in the double pole experiments. This buffer maintains a total of all of the values it contains, adjusting for values that are overwritten when the buffer overwrites old values.
Show file Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clear the buffer.

Dequeue ( ) : double

Remove an item from the back of the queue.

Enqueue ( double item ) : void

Add an item to the front of the buffer.

JiggleBuffer ( int size ) : System

Construct buffer with the specified capacity.

Pop ( ) : double

Pop an item from the head/top of the queue.

Method Details

Clear() public method

Clear the buffer.
public Clear ( ) : void
return void

Dequeue() public method

Remove an item from the back of the queue.
public Dequeue ( ) : double
return double

Enqueue() public method

Add an item to the front of the buffer.
public Enqueue ( double item ) : void
item double
return void

JiggleBuffer() public method

Construct buffer with the specified capacity.
public JiggleBuffer ( int size ) : System
size int
return System

Pop() public method

Pop an item from the head/top of the queue.
public Pop ( ) : double
return double