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