NumericAnalysisExtensionsStandardDeviationT(IEnumerableT, FuncT, Decimal, Boolean) Method

Computes the standard deviation over a sequence of Decimal values.

Definition

Namespace: Gemstone.Numeric.Analysis
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.186 -- Release Build+6e9b2c0bd924f689e3150d56bd1b33cfd5180a10
public static decimal StandardDeviation<T>(
	this IEnumerable<T> source,
	Func<T, decimal> selector,
	bool calculateForSample = false
)

Parameters

source  IEnumerableT
Source data sample.
selector  FuncT, Decimal
Used to map value from enumerable of T to enumerable of Decimal.
calculateForSample  Boolean  (Optional)
Set to true to calculate for estimated population size, or false for full population.

Type Parameters

T
Type of source used to extract decimal.

Return Value

Decimal
The standard deviation of the sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionsource is null.
ArgumentOutOfRangeExceptionsource does not contain enough values to produce a result.

See Also