ICRAR / leap-accelerate

Low-frequency Excision of the Atmosphere in Parallel
GNU General Public License v2.0
1 stars 1 forks source link

Add calibration validation #46

Open calgray opened 3 years ago

calgray commented 3 years ago

It is possible to validate that the calibration result is conformant with the mathematical model at the end of calibration. The following expressions can be converted into asserts or warnings at the end of PhaseRotate()

V == AG therefore G == AdV V-A*G ~= 0

calgray commented 3 years ago

e.g.

auto G = cal.back();
double PRECISION = 0.000001;
assert(isApprox(V-(ToMatrix(metadata.A) * ToMatrix(G)), 0, PRECISION));