Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double MulLinEval(const DewArray<double> &B, TVec *X, bool Constant = false); | Evaluates multiple linear function. |
| 2 | void MulLinEval(const DewArray<double> &B, TMtx *X, TVec *YHat, bool Constant = false); | Evaluates b[0] + b[1]*x[0] + b[2]*x[1] + ... for given values in X vector, parameters in B array, and returns the results in XHat vector. |
Overload 1: double MulLinEval(const DewArray<double> &B, TVec *X, bool Constant = false);
Evaluates multiple linear function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | B | const DewArray<double> & | |
| 2 | X | TVec * | |
| 3 | Constant = false | bool |
Returns: b[0] + b[1]*x[0] + b[2]*x[1] + ... for given value X and parameters in B array.
Declared in Dew::Stats::Units::RegModels · Dew.Stats/Units.RegModels.h · Cross-compiler
Overload 2: void MulLinEval(const DewArray<double> &B, TMtx *X, TVec *YHat, bool Constant = false);
Evaluates b[0] + b[1]*x[0] + b[2]*x[1] + ... for given values in X vector, parameters in B array, and returns the results in XHat vector.
Remarks:
Size and Complex properties of XHat vector are adjusted automatically.
Note
Use this version if you want to evaluate multiple linear function for multiple values at the same time. This is a lot faster than calling single value version for each x value.
See Also: RegModels::MulLinFit
Declared in Dew::Stats::Units::RegModels · Dew.Stats/Units.RegModels.h · Cross-compiler