Statistics.RayleighFit Method

Overload List

#SignatureDescription
1void RayleighFit(TVec X, ref Double b)Calculate parameters for Rayleigh distributed values.
2void RayleighFit(TVec X, ref Double b, ref Double[] PCIB, Double Alpha)Calculate parameters for Rayleigh distributed values.

Overload 1: void RayleighFit(TVec X, ref Double b)

Calculate parameters for Rayleigh distributed values.

#NameTypeDescription
1XTVecsource TVec
2bDouble (ref)output

Result: stored in self (calling object)

Overload 2: void RayleighFit(TVec X, ref Double b, ref Double[] PCIB, Double Alpha)

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)

Examples
using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples;
{
    private void Example()
    {
        Vector vec1 = new Vector(0);
        // first, generate 1000 randomly Rayleigh distributed
        // numbers with b=1.3
        vec1.Size(1000,false);
            StatRandom.RandomRayleigh(1.3,vec1,-1);
        // Now extract the r and it's 95% confidence intervals.
        double resb;
        double[] CIb = new double[2];
        Statistics.RayleighFit(vec1,out resb,out CIb,0.05);
    }
}
See Also: StatRandom.RandomRayleigh, Probabilities.RayleighStat