TMtxMulLinReg.ValidSystem Method

Boolean ValidSystem

Checks if system is valid.

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

Remarks:

Checks if system is valid.

Examples
// ...
// y = A*b
MtxMulLinReg1.A.SetIt(3,2,false,new double[]
    {-5,2, 1,4, 8,0.5});
MtxMulLinReg1.Y.SetIt(false,new double[] {-2, 1,11});
MtxMulLinReg1.UseWeights = false;
if (MtxMulLinReg1.ValidSystem()) MtxMulLinReg1.Recalc();
// ...
See Also: TMtxMulLinReg.A, TMtxMulLinReg.Y