void LogisticFit(TVec *B, TVec *X, TVec *Y, bool Constant = false, TVec *Weights = null);
Fits logistic equation to data.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | B | TVec * | Returns regression coefficients for logistic function. |
| 2 | X | TVec * | Vector of independent variable. |
| 3 | Y | TVec * | Vector of dependent variable. |
| 4 | Constant = false | bool | If false, B[0] i.e. constant term in nominator is set to 0.0. |
| 5 | Weights = null | TVec * | Weights (optional). Weights are used only if they are set. |
Remarks:
The routine fits equations to data by minimizing the sum of squared residuals. The observed values obey the following equation:
See Also: RegModels::LogisticEval
Declared in Dew::Stats::Units::RegModels · Dew.Stats/Units.RegModels.h · Cross-compiler