Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void GeometricFit(TVec X, ref Double P) | Calculate parameters for geometrically distributed values. |
| 2 | void 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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | source TVec |
| 2 | P | Double (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.
| # | Name | Description |
|---|---|---|
| 1 | X | Stores data which is assumed to be geometricaly distributed. |
| 2 | P | Returns geometric distribution parameter estimator. |
| 3 | PCI | P (1-Alpha)*100 percent confidence interval. |
| 4 | Alpha | Confidence 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