void LogisticFit(TVec *X, double &m, double &b);
Calculate parameters for Logistic distributed values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TVec * | Stores data which is assumed to follow logistic distribution. |
| 2 | m | double & | Return Logistic distribution parameter estimator M. |
| 3 | b | double & | Return Logistic distribution parameter estimator b. |
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 Data(100);
RandomLogistic(3,0.2,Data, -1);
double m, b;
LogisticFit(Data, m, b);
// m approx 3.0
// b approx 0.2
}
See Also: RandomLogistic
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler