numl.Supervised.NaiveBayes.Measure.GetProbability C# (CSharp) Method

GetProbability() private method

Gets a probability.
Thrown when the requested operation is invalid.
private GetProbability ( double x ) : double
x double The x coordinate.
return double
        internal double GetProbability(double x)
        {
            var p = GetStatisticFor(x);
            if (p == null) throw new InvalidOperationException("Range not found!");
            return p.Probability;
        }