Normal Distribution.Get Confidence Interval Method
Returns a confidence interval at the specified level.
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
An Interval.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
ArgumentOutOfRangeException | varianceOfMean is less than or equal to zero.
-or- confidenceLevel is less than zero or greater than 1. |