RegModels::MulLinEval Function

Overload List

#SignatureDescription
1double MulLinEval(const DewArray<double> &B, TVec *X, bool Constant = false);Evaluates multiple linear function.
2void 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.

#NameTypeDescription
1Bconst DewArray<double> &
2XTVec *
3Constant = falsebool

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.

#NameTypeDescription
1Bconst DewArray<double> &
2XTMtx *
3YHatTVec *
4Constant = falsebool
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