Table of Contents

Class StandardDeviation

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

This indicator computes the n-period population standard deviation.

public class StandardDeviation : Variance, IIndicator, IUpdatable
Inheritance
StandardDeviation
Implements
Inherited Members
Extension Methods

Constructors

StandardDeviation(int)

Initializes a new instance of the StandardDeviation class with the specified period.

Evaluates the standard deviation of samples in the look-back period. On a data set of size N will use an N normalizer and would thus be biased if applied to a subset.

public StandardDeviation(int period)

Parameters

period int

The sample size of the standard deviation

StandardDeviation(string, int)

Initializes a new instance of the StandardDeviation class with the specified name and period.

Evaluates the standard deviation of samples in the look-back period. On a data set of size N will use an N normalizer and would thus be biased if applied to a subset.

public StandardDeviation(string name, int period)

Parameters

name string

The name of this indicator

period int

The sample size of the standard deviation

Methods

Forward(IReadOnlyWindow<long>, IReadOnlyWindow<DoubleArray>, long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(IReadOnlyWindow<long> timeWindow, IReadOnlyWindow<DoubleArray> window, long time, DoubleArray input)

Parameters

timeWindow IReadOnlyWindow<long>
window IReadOnlyWindow<DoubleArray>

The window for the input history

time long
input DoubleArray

The input given to the indicator

Returns

DoubleArray

A new value for this indicator