Click or drag to resize

NumericalAnalysisExtensionsStandardDeviation(IEnumerableSingle, Boolean) Method

Computes the standard deviation over a sequence of Single values.

Namespace: GSF.NumericalAnalysis
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.299-beta+8a755d9ea9a736ecd2384f3ff51b46ebfc1ce0d9
Syntax
public static float StandardDeviation(
	this IEnumerable<float> source,
	bool calculateForSample = false
)
View Source

Parameters

source  IEnumerableSingle
Source data sample.
calculateForSample  Boolean  (Optional)
Set to true to calculate for estimated population size, or false for full population.

Return Value

Single
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 IEnumerableSingle. 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
ExceptionCondition
ArgumentNullExceptionsource is null.
ArgumentOutOfRangeExceptionsource does not contain enough values to produce a result.
See Also