C# Класс Encog.App.Quant.Util.BarBuffer

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

Add a bar.
public Add ( double d ) : void
d double The bar data.
Результат void

Average() публичный Метод

Average all of the bars.
public Average ( int idx ) : double
idx int The bar index to average.
Результат double

AverageGain() публичный Метод

Get the average gain.
public AverageGain ( int idx ) : double
idx int The field to get the average gain for.
Результат double

AverageLoss() публичный Метод

Get the average loss.
public AverageLoss ( int idx ) : double
idx int The index to check for.
Результат double

BarBuffer() публичный Метод

Construct the object.
public BarBuffer ( int thePeriods ) : System
thePeriods int The number of periods.
Результат System

Max() публичный Метод

Get the max for the specified index.
public Max ( int idx ) : double
idx int The index to check.
Результат double

Min() публичный Метод

Get the min for the specified index.
public Min ( int idx ) : double
idx int The index to check.
Результат double

Pop() публичный Метод

Pop (and remove) the oldest bar in the buffer.
public Pop ( ) : double[]
Результат double[]