RegModels.LnEval Method

Overload List

#SignatureDescription
1procedure LnEval(const B: TVec; const X: TVec; const YHat: TVec);Evaluate logarithm function (fully vectorized).
2procedure LnEval(const B: TDoubleArray; const X: TVec; const YHat: TVec);Evaluate the logarithm model (partially vectorized).
3function LnEval(const B: TDoubleArray; X: Double): Double;Evaluate the logarithm y(x)=b[0] + b[1]*ln(x) model.

Overload 1: procedure LnEval(const B: TVec; const X: TVec; const YHat: TVec);

Evaluate logarithm function (fully vectorized).

#NameTypeDescription
1BTVec
2XTVec
3YHatTVec

Result: stored in self (calling object)

See Also: RegModels.LnFit

Overload 2: procedure LnEval(const B: TDoubleArray; const X: TVec; const YHat: TVec);

Evaluate the logarithm model (partially vectorized).

#NameTypeDescription
1BTDoubleArray
2XTVec
3YHatTVec

Result: stored in self (calling object)

Overload 3: function LnEval(const B: TDoubleArray; X: Double): Double;

Evaluate the logarithm y(x)=b[0] + b[1]*ln(x) model.

#NameTypeDescription
1BTDoubleArray
2XDoublescalar

Returns: Double

Remarks:

The observed values obey the following equation:

Y=b[0]+b[1]ln(x)Y = b[0] + b[1] \ln(x)