Statistics.GeometricFit Method

Overload List

#SignatureDescription
1void GeometricFit(TVec X, ref Double P)Calculate parameters for geometrically distributed values.
2void GeometricFit(TVec X, ref Double P, ref Double[] PCI, Double Alpha)Calculate parameters for geometrically distributed values.

Overload 1: void GeometricFit(TVec X, ref Double P)

Calculate parameters for geometrically distributed values.

#NameTypeDescription
1XTVecsource TVec
2PDouble (ref)output

Result: stored in self (calling object)

Overload 2: void GeometricFit(TVec X, ref Double P, ref Double[] PCI, Double Alpha)

Calculate parameters for geometrically distributed values.

#NameDescription
1XStores data which is assumed to be geometricaly distributed.
2PReturns geometric distribution parameter estimator.
3PCIP (1-Alpha)*100 percent confidence interval.
4AlphaConfidence interval percentage.

Result: stored in self (calling object)

Examples
using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples;
{
    private void Example()
    {
        Vector vec1 = new Vector(1000, false);
        // first, generate 1000 randomly geometr. distributed
        // numbers with parameter p=0.713
        StatRandom.RandomGeometric(0.713, vec1, -1);
        // Now, extract the p and its 100*(1-0.05) = 95%
        // confidence interval
        double resp;
        double[] CIp = new double[2];
        Statistics.GeometricFit(vec1, out resp, out CIp, 0.05);
    }
}
See Also: StatRandom.RandomGeometric, Probabilities.GeometricStat