Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void RayleighFit(TVec *X, double &b); | Calculate parameters for Rayleigh distributed values. |
| 2 | void 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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec * | |
| 2 | b | double & |
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec * | Stores data which is assumed to be Rayleigh distributed. |
| 2 | b | double & | Returns Rayleigh distribution parameter estimator. |
| 3 | PCIB | DewArray<double> & | b (1-Alpha)*100 percent confidence interval. |
| 4 | Alpha = 0.05 | double | Confidence 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