Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure UniformFit(const X: TVec; out low: Double; out high: Double); | Calculate parameters for uniformly distributed values. |
| 2 | procedure UniformFit(const X: TVec; out low: Double; out high: Double; var PCILow: TDoubleArray; var PCIHigh: TDoubleArray; Alpha: Double); | Calculate parameters for uniformly distributed values. |
Overload 1: procedure UniformFit(const X: TVec; out low: Double; out high: Double);
Calculate parameters for uniformly distributed values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | |
| 2 | low | Double | |
| 3 | high | Double |
Result: stored in self (calling object)
Examples
Uses MtxExpr, Math387, Statistics;
procedure Example;
var vec1: Vector;
resLow, resHigh : double;
CILow,CIHigh: TTwoElmReal;
begin
// first, generate 1000 randomly Uniformly distributed
// numbers with parameters Low=1.5 and High =2.2
vec1.Size(1000);
RandomUniform(1.5,2.2,vec1);
// Now extract the Low,High and their 95% confidence intervals.
UniformFit(vec1,resLow,resHigh,CILow,CIHigh);
end;
Overload 2: procedure UniformFit(const X: TVec; out low: Double; out high: Double; var PCILow: TDoubleArray; var PCIHigh: TDoubleArray; Alpha: Double);
Calculate parameters for uniformly distributed values.
| # | Name | Description |
|---|---|---|
| 1 | X | Stores data which is assumed to be uniformly distributed. |
| 2 | low | Return uniform distribution parameter estimator Low. |
| 3 | high | Return uniform distribution parameter estimator High. |
| 4 | PCILow | Low (1-Alpha)*100 percent confidence interval. |
| 5 | PCIHigh | High (1-Alpha)*100 percent confidence interval. |
| 6 | Alpha | Confidence interval percentage. |
Result: stored in self (calling object)
See Also: StatRandom.RandomUniform, Probabilities.UniformStat