RegModels::LogisticFit Function

void LogisticFit(TVec *B, TVec *X, TVec *Y, bool Constant = false, TVec *Weights = null);

Fits logistic equation to data.

#NameTypeDescription
1BTVec *Returns regression coefficients for logistic function.
2XTVec *Vector of independent variable.
3YTVec *Vector of dependent variable.
4Constant = falseboolIf false, B[0] i.e. constant term in nominator is set to 0.0.
5Weights = nullTVec *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:

Y=b[0]+b[1]b[0]1+exp(b[2]x+b[3])Y = b[0] + \cfrac{b[1]-b[0]}{1+\exp (-b[2]\cdot x + b[3] )}
See Also: RegModels::LogisticEval
Declared in Dew::Stats::Units::RegModels · Dew.Stats/Units.RegModels.h · Cross-compiler