void LogisticFit(TVec X, ref Double m, ref Double b)
Calculate parameters for Logistic distributed values.
| # | Name | Description |
|---|---|---|
| 1 | X | Stores data which is assumed to follow logistic distribution. |
| 2 | m | Return Logistic distribution parameter estimator M. |
| 3 | b | Return Logistic distribution parameter estimator b. |
Result: stored in self (calling object)
Examples
using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples;
{
private void Example()
{
Vector Data = new Vector(100);
StatRandom.RandomLogistic(3,0.2,Data, -1);
double m, b;
Statistics.LogisticFit(Data, out m, out b);
// m approx 3.0
// b approx 0.2
}
}
See Also: StatRandom.RandomLogistic