example investigating P-Matrix
- Author
- MIP
#include "../../Base/Math/Random.hh"
#include "../PMatrix.hh"
#include "../RMatrix.hh"
using namespace BIAS;
using namespace std;
int main() {
unsigned int numTests = 30;
for (unsigned int i=0; i<numTests; i++) {
cout <<
"skew " << K.
GetSkew() << endl;
if (C[0] * R[0][2] >0.0)
C[0] *= -1.0;
if (C[1] * R[1][2] >0.0)
C[1] *= -1.0;
C.Normalize();
for(int x=0; x < 3; x++){
for(int y = 0; y < 4; y++){
}
}
cout <<
"Test no " << i <<
" : " << ((
PMatrix)(P - PEst)).IsZero(1e-12) << endl;
cout <<
"K " << (
KMatrix)(K - KEst) << endl;
cout <<
"R " << (
RMatrix)(R - REst) << endl;
cout << "C " << C - CEst << endl;
}
return 0;
}