bool ValidSystem();
Checks if system is valid.
Returns: 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
#include "MtxVec.h"
#include "StatTools.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Stats;
void Example()
{
TMtxMulLinReg* MtxMulLinReg1 = new TMtxMulLinReg(nullptr);
// ...
// y = A*b
MtxMulLinReg1->A->SetIt(3,2,false,DewArray<double>
{-5,2, 1,4, 8,0.5});
MtxMulLinReg1->Y->SetIt(false,DewArray<double> {-2, 1,11});
MtxMulLinReg1->UseWeights = false;
if (MtxMulLinReg1->ValidSystem()) MtxMulLinReg1->Recalc();
// ...
delete MtxMulLinReg1;
}
See Also: TMtxMulLinReg::A, TMtxMulLinReg::Y
Declared in Dew::Stats::TMtxMulLinReg · Dew.Stats/StatTools.h · Cross-compiler