Statistics::RayleighFit Function

Overload List

#SignatureDescription
1void RayleighFit(TVec *X, double &b);Calculate parameters for Rayleigh distributed values.
2void RayleighFit(TVec *X, double &b, DewArray<double> &PCIB, double Alpha = 0.05);Calculate parameters for Rayleigh distributed values.

Overload 1: void RayleighFit(TVec *X, double &b);

Calculate parameters for Rayleigh distributed values.

#NameTypeDescription
1XTVec *
2bdouble &
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 2: void RayleighFit(TVec *X, double &b, DewArray<double> &PCIB, double Alpha = 0.05);

Calculate parameters for Rayleigh distributed values.

#NameTypeDescription
1XTVec *Stores data which is assumed to be Rayleigh distributed.
2bdouble &Returns Rayleigh distribution parameter estimator.
3PCIBDewArray<double> &b (1-Alpha)*100 percent confidence interval.
4Alpha = 0.05doubleConfidence interval percentage.
Examples
#include "MtxExpr.h"
#include "Units.StatRandom.h"
#include "Units.Statistics.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Stats;
using namespace Dew::Stats::Units::StatRandom;
using namespace Dew::Stats::Units::Statistics;

void Example()
{
    Vector vec1(0);
        // first, generate 1000 randomly Rayleigh distributed
        // numbers with b=1.3
        vec1.Size(1000,false);
        RandomRayleigh(1.3,vec1,-1);
    // Now extract the r and it's 95% confidence intervals.
    double resb;
    DewArray<double> CIb(2);
    RayleighFit(vec1,resb,CIb,0.05);
}
See Also: RandomRayleigh, RayleighStat
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler