Skip to content

Commit

Permalink
show number of sampling points in speaker layout error measures
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Oct 13, 2023
1 parent 61fe04b commit e5990d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions libtascar/include/receivermod.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ namespace TASCAR {
double abs_azim_rV_error = 0.0;
double abs_elev_rE_error = 0.0;
double abs_elev_rV_error = 0.0;
size_t N = 0;
std::string to_string(const std::string& label,
const std::string& sampling);
};
Expand Down
3 changes: 2 additions & 1 deletion libtascar/src/receivermod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ std::string spatial_error_t::to_string(const std::string& label,
".abs_el_rV = " + TASCAR::to_string(RAD2DEG * abs_elev_rV_error) +
";\n" + "e." + label +
".abs_el_rE = " + TASCAR::to_string(RAD2DEG * abs_elev_rE_error) +
";\n";
";\n" + "e." + label + ".N = " + std::to_string(N) + ";\n";
}

TASCAR::receivermod_base_speaker_t::receivermod_base_speaker_t(
Expand Down Expand Up @@ -381,6 +381,7 @@ spatial_error_t TASCAR::receivermod_base_speaker_t::get_spatial_error(
err.q75_azim_rE_error = TASCAR::median(vaz_rE.begin(), vaz_rE.end(), 0.75);
err.q75_elev_rV_error = TASCAR::median(vel_rV.begin(), vel_rV.end(), 0.75);
err.q75_elev_rE_error = TASCAR::median(vel_rE.begin(), vel_rE.end(), 0.75);
err.N = srcpos.size();
return err;
}

Expand Down

0 comments on commit e5990d3

Please sign in to comment.