1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-25 22:43:14 +00:00

Minor 3D error plot improvements

This commit is contained in:
Carles Fernandez 2018-09-05 21:02:48 +02:00
parent 8cd4ac060b
commit a956fdee7d
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -781,8 +781,10 @@ void StaticPositionSystemTest::check_results()
//conversion between arma::vec and std:vector
std::vector<double> error_vec(error_module_R_eb_e.colptr(0), error_module_R_eb_e.colptr(0) + error_module_R_eb_e.n_rows);
g3.cmd("set key box opaque");
g3.plot_xy(time_vector_from_start_s, error_vec,
"Position_3d_error");
g3.plot_xy(time_vector_from_start_s, error_vec, "Position 3D error");
double mean3d = std::accumulate(error_vec.begin(), error_vec.end(), 0.0) / error_vec.size();
std::vector<double> error_mean(mean3d, error_vec.size());
g3.plot_xy(time_vector_from_start_s, error_mean, "Mean");
g3.set_legend();
g3.savetops("Position_3d_error");