Discrete Distribution.Two Tail Probability Method
Gets the probability of obtaining a sample that is less than or less than or equal to the specified upper bound.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
The sum of all probabilities between lowerBound and upperBound.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public double TwoTailProbability(
int lowerBound,
int upperBound,
bool inclusive
)
Parameters
- lowerBound Int32
- The upper bound.
- upperBound Int32
- The upper bound.
- inclusive Boolean
- Specifies whether the lower and upper bounds should be included in the total probability.
Return Value
DoubleThe sum of all probabilities between lowerBound and upperBound.