| 
            
              NumericalAnalysisExtensionsStandardDeviation(IEnumerableDecimal, Boolean) Method
             | 
          
        
        
            Computes the standard deviation over a sequence of Decimal values.
            
        
        Namespace: GSF.NumericalAnalysisAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic static decimal StandardDeviation(
	this IEnumerable<decimal> source,
	bool calculateForSample = false
)
<ExtensionAttribute>
Public Shared Function StandardDeviation ( 
	source As IEnumerable(Of Decimal),
	Optional calculateForSample As Boolean = false
) As Decimal
public:
[ExtensionAttribute]
static Decimal StandardDeviation(
	IEnumerable<Decimal>^ source, 
	bool calculateForSample = false
)
[<ExtensionAttribute>]
static member StandardDeviation : 
        source : IEnumerable<decimal> * 
        ?calculateForSample : bool 
(* Defaults:
        let _calculateForSample = defaultArg calculateForSample false
*)
-> decimal GSF.NumericalAnalysis.NumericalAnalysisExtensions.StandardDeviation = function(source, calculateForSample);
 View SourceParameters
- source  IEnumerableDecimal
 - Source data sample.
 - calculateForSample  Boolean  (Optional)
 - Set to true to calculate for estimated population size, or false for full population.
 
Return Value
DecimalThe 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 
IEnumerableDecimal. 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| Exception | Condition | 
|---|
| ArgumentNullException | source is null. | 
| ArgumentOutOfRangeException | source does not contain enough values to produce a result. | 
See Also