Statistics.RayleighFit Method

Overload List

#SignatureDescription
1procedure RayleighFit(const X: TVec; out b: Double);Calculate parameters for Rayleigh distributed values.
2procedure RayleighFit(const X: TVec; out b: Double; var PCIB: TDoubleArray; Alpha: Double);Calculate parameters for Rayleigh distributed values.

Overload 1: procedure RayleighFit(const X: TVec; out b: Double);

Calculate parameters for Rayleigh distributed values.

#NameTypeDescription
1XTVec
2bDouble

Result: stored in self (calling object)

Examples
var vec1: Vector;
resB : double;
CIb: TTwoElmReal;
begin
    // first, generate 1000 randomly Rayleigh distributed
    // numbers with b=1.3
    vec1.Size(1000);
    RandomRayleigh(1.3,vec1);
    // Now extract the r and it's 95% confidence intervals.
    RayleighFit(vec1,resb,CIb);
end;

Overload 2: procedure RayleighFit(const X: TVec; out b: Double; var PCIB: TDoubleArray; Alpha: Double);

Calculate parameters for Rayleigh distributed values.

#NameDescription
1XStores data which is assumed to be Rayleigh distributed.
2bReturns Rayleigh distribution parameter estimator.
3PCIBb (1-Alpha)*100 percent confidence interval.
4AlphaConfidence interval percentage.

Result: stored in self (calling object)

See Also: StatRandom.RandomRayleigh, Probabilities.RayleighStat