Statistics.UniformFit Method

Overload List

#SignatureDescription
1procedure UniformFit(const X: TVec; out low: Double; out high: Double);Calculate parameters for uniformly distributed values.
2procedure 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.

#NameTypeDescription
1XTVec
2lowDouble
3highDouble

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.

#NameDescription
1XStores data which is assumed to be uniformly distributed.
2lowReturn uniform distribution parameter estimator Low.
3highReturn uniform distribution parameter estimator High.
4PCILowLow (1-Alpha)*100 percent confidence interval.
5PCIHighHigh (1-Alpha)*100 percent confidence interval.
6AlphaConfidence interval percentage.

Result: stored in self (calling object)

See Also: StatRandom.RandomUniform, Probabilities.UniformStat