You are here: Symbol Reference > StatTools Namespace > Classes > TMtxMulLinReg Class > TMtxMulLinReg Methods > TMtxMulLinReg.ValidSystem Method
Stats Master VCL
ContentsIndex
PreviousUpNext
TMtxMulLinReg.ValidSystem Method

Checks if system is valid.

Pascal
function ValidSystem: boolean;

True if A is not zero matrix and A.Rows (number of observables) is equal to Y.Length.

Checks if system is valid.

A, Y

Checks if defined system is valid:

// ...
// 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 !');
// ...
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!