PStDev Method
Determines the population standard deviation of two or more numbers.
Definition
Namespace: GHost.GSharp.Analytics.AF
Assembly: GHost.GSharp.Analytics.AF (in GHost.GSharp.Analytics.AF.dll) Version: 1.2.0.0 (1.2.44.3)
C#
public static double PStDev(
Object values
)
VB
Public Shared Function PStDev (
values As Object
) As Double
Parameters
- Object
- Array of numbers, timestamps, or time periods, but all must be the same.
Return Value
Double
Population standard deviation of input arguments.
Example
C#
double[] valueArray = [10.0, 20.0, 30.0, 40.0, 50.0];
double result;
result = PStDev(valueArray);
result = PStDev(DateTime.Now, DateTime.Now.AddDays(-1), DateTime.Now.AddDays(-0.5));