MathNet.Numerics Negative Binomial - Median not Calculating

41 views Asked by At

I am trying to access the Median property of the Negative Binomial Distribution via MathNet.Numerics;

var NegBin = new MathNet.Numerics.Distributions.NegativeBinomial(30, 0.03);
var median = NegBin.Median

But I keep getting a 'NegBin.Median' threw an exception of type 'System.NotSupportedException'.

Does MathNet.Numerics not calculate the Median here? I am using version 4.9.0.

1

There are 1 answers

0
D Stanley On

Apparently not:

/// <summary>
/// Gets the median of the distribution.
/// </summary>
public double Median => throw new NotSupportedException();