Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure BinomFit(const X: TVec; const N: TVec; const p: TVec); | |
| 2 | procedure BinomFit(const X: TVec; N: Double; const p: TVec); | Calculate parameters for binomial distributed values. |
| 3 | procedure BinomFit(const X: TVec; N: Double; const p: TVec; const Low: TVec; const High: TVec; Alpha: Double); | Calculate parameters for binomial distributed values. |
| 4 | procedure BinomFit(const X: TVec; out N: Integer; out p: Double); |
Overload 1: procedure BinomFit(const X: TVec; const N: TVec; const p: TVec);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | |
| 2 | N | TVec | |
| 3 | p | TVec |
Result: stored in self (calling object)
Overload 2: procedure BinomFit(const X: TVec; N: Double; const p: TVec);
Calculate parameters for binomial distributed values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | |
| 2 | N | Double | scalar |
| 3 | p | TVec |
Result: stored in self (calling object)
Examples
var vec1: Vector;
LowInt,HighInt,p: Vector;
begin
vec1.Size(1000);
RandomBinom(35,0.25,vec1);
// Now extract p-s and its 100*(1-Alpha)
// confidence intervals.
BinomFit(vec1,35,p,LowInt,HighInt);
// vector p holds the p for each element in vec1,
// vectors LowInt and HighInt hold the lower and upper conf. int. limit
// for each element in p
end;
Overload 3: procedure BinomFit(const X: TVec; N: Double; const p: TVec; const Low: TVec; const High: TVec; Alpha: Double);
Calculate parameters for binomial distributed values.
| # | Name | Description |
|---|---|---|
| 1 | X | Stores data which is assumed to be binomial distributed. |
| 2 | N | Defines binomial distribution n parameter. |
| 3 | p | Returns binomial distribution p parameter, estimated at each X value. |
| 4 | Low | |
| 5 | High | p (1-Alpha)*100 percent confidence intervals. Each pair of Low and High values defines lower and upper CI for corresponding p value. |
| 6 | Alpha | Confidence interval percentage. |
Result: stored in self (calling object)
See Also: StatRandom.RandomBinom, Probabilities.BinomStat
Overload 4: procedure BinomFit(const X: TVec; out N: Integer; out p: Double);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | |
| 2 | N | Integer | |
| 3 | p | Double |
Result: stored in self (calling object)