Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void ExponentFit(TVec X, ref Double mu) | Calculate parameters for exponentialy distributed values. |
| 2 | void ExponentFit(TVec X, ref Double mu, ref Double[] PCIMu, Double Alpha) | Calculate parameters for exponentially distributed values. |
Overload 1: void ExponentFit(TVec X, ref Double mu)
Calculate parameters for exponentialy distributed values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec | source TVec |
| 2 | mu | Double (ref) | output |
Result: stored in self (calling object)
Overload 2: void ExponentFit(TVec X, ref Double mu, ref Double[] PCIMu, Double Alpha)
Calculate parameters for exponentially distributed values.
| # | Name | Description |
|---|---|---|
| 1 | X | Stores data which is assumed to be exponentialy distributed. |
| 2 | mu | Returns exponential distribution parameter estimator. |
| 3 | PCIMu | Mu (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(1000,false);
// first, generate 1000 randomly beta distributed
// numbers with parameter mu=4.13, and default seed
StatRandom.RandomExponent(4.13,vec1,-1);
double estmu;
double[] cimu = new double[2];
// Now extract the mu and its 95% confidence intervals.
Statistics.ExponentFit(vec1,out estmu,out cimu, 0.05);
See Also: StatRandom.RandomExponent, Probabilities.ExponentStat