C# Class Encog.App.Quant.Util.BarBuffer

Afficher le fichier Open project: encog/encog-silverlight-core

Méthodes publiques

Méthode Description
Add ( double d ) : void

Add a bar.

Average ( int idx ) : double

Average all of the bars.

AverageGain ( int idx ) : double

Get the average gain.

AverageLoss ( int idx ) : double

Get the average loss.

BarBuffer ( int thePeriods ) : System

Construct the object.

Max ( int idx ) : double

Get the max for the specified index.

Min ( int idx ) : double

Get the min for the specified index.

Pop ( ) : double[]

Pop (and remove) the oldest bar in the buffer.

Method Details

Add() public méthode

Add a bar.
public Add ( double d ) : void
d double The bar data.
Résultat void

Average() public méthode

Average all of the bars.
public Average ( int idx ) : double
idx int The bar index to average.
Résultat double

AverageGain() public méthode

Get the average gain.
public AverageGain ( int idx ) : double
idx int The field to get the average gain for.
Résultat double

AverageLoss() public méthode

Get the average loss.
public AverageLoss ( int idx ) : double
idx int The index to check for.
Résultat double

BarBuffer() public méthode

Construct the object.
public BarBuffer ( int thePeriods ) : System
thePeriods int The number of periods.
Résultat System

Max() public méthode

Get the max for the specified index.
public Max ( int idx ) : double
idx int The index to check.
Résultat double

Min() public méthode

Get the min for the specified index.
public Min ( int idx ) : double
idx int The index to check.
Résultat double

Pop() public méthode

Pop (and remove) the oldest bar in the buffer.
public Pop ( ) : double[]
Résultat double[]