| 319 | } |
| 320 | |
| 321 | void InterpolationDemo::printStatistics(const Statistics &stats) const |
| 322 | { |
| 323 | std::cout << " \n \n ================================== \n"; |
| 324 | printf("Interpolated map of size: %f x %f \n", interpolatedMap_.getLength().x(), |
| 325 | interpolatedMap_.getLength().y()); |
| 326 | printf("Resolution of the data: %f, resolution of the interpolated map: %f, \n \n", |
| 327 | dataSparseMap_.getResolution(), interpolatedMap_.getResolution()); |
| 328 | |
| 329 | for (auto world = worlds.cbegin(); world != worlds.cend(); ++world) { |
| 330 | std::cout << "Stats for the world: " << world->first << std::endl; |
| 331 | for (auto method = interpolationMethods.cbegin(); method != interpolationMethods.cend(); |
| 332 | ++method) { |
| 333 | Statistic s = stats.at(world->first).at(method->first); |
| 334 | printf( |
| 335 | "Method: %-20s Mean absolute error: %-10f max error: %-10f avg query duration: %-10f microsec \n", |
| 336 | method->first.c_str(), s.error_.meanAbs_, s.error_.max_, s.duration_); |
| 337 | } |
| 338 | std::cout << std::endl; |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | void InterpolationDemo::publishGridMaps() const |
| 343 | { |
nothing calls this directly
no test coverage detected