Table of Contents

Class StdDevEx

Namespace
DynamicData.Aggregation
Assembly
DynamicData.dll

Extensions for calculating standard deviation.

public static class StdDevEx
Inheritance
StdDevEx

Methods

StdDev<T>(IObservable<IAggregateChangeSet<T>>, Func<T, decimal>, decimal)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<decimal> StdDev<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, decimal> valueSelector, decimal fallbackValue = 0)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, decimal>

The value selector.

fallbackValue decimal

The fallback value.

Returns

IObservable<decimal>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IAggregateChangeSet<T>>, Func<T, double>, double)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, double> valueSelector, double fallbackValue = 0)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, double>

The value selector.

fallbackValue double

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IAggregateChangeSet<T>>, Func<T, int>, int)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, int> valueSelector, int fallbackValue = 0)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, int>

The value selector.

fallbackValue int

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IAggregateChangeSet<T>>, Func<T, long>, long)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, long> valueSelector, long fallbackValue = 0)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, long>

The value selector.

fallbackValue long

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IAggregateChangeSet<T>>, Func<T, float>, float)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IAggregateChangeSet<T>> source, Func<T, float> valueSelector, float fallbackValue = 0)

Parameters

source IObservable<IAggregateChangeSet<T>>

The source.

valueSelector Func<T, float>

The value selector.

fallbackValue float

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IChangeSet<T>>, Func<T, decimal>, decimal)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<decimal> StdDev<T>(this IObservable<IChangeSet<T>> source, Func<T, decimal> valueSelector, decimal fallbackValue) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, decimal>

The value selector.

fallbackValue decimal

The fallback value.

Returns

IObservable<decimal>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IChangeSet<T>>, Func<T, double>, double)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IChangeSet<T>> source, Func<T, double> valueSelector, double fallbackValue) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, double>

The value selector.

fallbackValue double

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IChangeSet<T>>, Func<T, int>, int)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IChangeSet<T>> source, Func<T, int> valueSelector, int fallbackValue) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, int>

The value selector.

fallbackValue int

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IChangeSet<T>>, Func<T, long>, long)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IChangeSet<T>> source, Func<T, long> valueSelector, long fallbackValue) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, long>

The value selector.

fallbackValue long

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<T>(IObservable<IChangeSet<T>>, Func<T, float>, float)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<T>(this IObservable<IChangeSet<T>> source, Func<T, float> valueSelector, float fallbackValue = 0) where T : notnull

Parameters

source IObservable<IChangeSet<T>>

The source.

valueSelector Func<T, float>

The value selector.

fallbackValue float

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

T

The type of the item.

StdDev<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, decimal>, decimal)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<decimal> StdDev<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, decimal> valueSelector, decimal fallbackValue) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, decimal>

The value selector.

fallbackValue decimal

The fallback value.

Returns

IObservable<decimal>

An observable which emits the standard deviation value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

StdDev<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, double>, double)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, double> valueSelector, double fallbackValue) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, double>

The value selector.

fallbackValue double

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

StdDev<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, int>, int)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, int> valueSelector, int fallbackValue) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, int>

The value selector.

fallbackValue int

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

StdDev<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, long>, long)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, long> valueSelector, long fallbackValue) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, long>

The value selector.

fallbackValue long

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.

StdDev<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, Func<TObject, float>, float)

Continual computation of the standard deviation of the values in the underlying data source.

public static IObservable<double> StdDev<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, Func<TObject, float> valueSelector, float fallbackValue = 0) where TObject : notnull where TKey : notnull

Parameters

source IObservable<IChangeSet<TObject, TKey>>

The source.

valueSelector Func<TObject, float>

The value selector.

fallbackValue float

The fallback value.

Returns

IObservable<double>

An observable which emits the standard deviation value.

Type Parameters

TObject

The type of the object.

TKey

The type of the key.