TMtxMulLinReg.ValidSystem Method

function ValidSystem: Boolean;

Checks if system is valid.

Returns: Boolean - True if TMtxMulLinReg.A is not zero matrix and TMtxMulLinReg.A.Rows (number of observables) is equal to TMtxMulLinReg.Y.Length.

Remarks:

Checks if system is valid.

Examples
// ...
// y = A*b
MtxMulLinReg1.A.SetIt(3,2,false,[-5,2,
1,4,
8,0.5]);
MtxMulLinReg1.Y.SetIt(false,[-2,
1,
11]);
MtxMulLinReg1.UseWeights := false;
if MtxMulLinReg1.ValidSystem then MtxMulLinReg1.Recalc
else ShowMessage('System not valid !');
// ...
See Also: TMtxMulLinReg.A, TMtxMulLinReg.Y