Normal Distribution.Get Confidence Interval Method
Returns a confidence interval at the specified level.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
An Interval.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static Interval GetConfidenceInterval(
double mean,
double varianceOfMean,
double confidenceLevel
)
Parameters
- mean Double
- The mean value of the parameter.
- varianceOfMean Double
- The variance of the mean value of the parameter.
- confidenceLevel Double
- A number between 0 and 1 indicating the confidence level. A value of 0.95 corresponds to a confidence level of 95%.
Return Value
IntervalAn Interval.
Exceptions
Argument | varianceOfMean is less than or equal to zero. -or- confidenceLevel is less than zero or greater than 1. |