Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure GeometricFit(const X: TVec; out P: Double); | Calculate parameters for geometrically distributed values. |
| 2 | procedure GeometricFit(const X: TVec; out P: Double; var PCI: TDoubleArray; Alpha: Double); | Calculate parameters for geometrically distributed values. |
Overload 1: procedure GeometricFit(const X: TVec; out P: Double);
Calculate parameters for geometrically distributed values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | |
| 2 | P | Double |
Result: stored in self (calling object)
Examples
Uses MtxExpr, Math387, Statistics;
procedure Example;
var vec1: Vector;
resp: double;
CIp: TTwoElmReal;
begin
// first, generate 1000 randomly geometr. distributed
// numbers with parameter p=0.713
vec1.Size(1000);
RandomGeometric(0.713,vec1);
// Now, extract the p and its 100*(1-0.05) = 95%
// confidence interval
GeometricFit(vec1,resp,CIp);
end;
Overload 2: procedure GeometricFit(const X: TVec; out P: Double; var PCI: TDoubleArray; Alpha: Double);
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)
See Also: StatRandom.RandomGeometric, Probabilities.GeometricStat