mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "routing/routing_quality/api/api.hpp"
|
||||
#include "routing/routes_builder/routes_builder.hpp"
|
||||
#include "routing/routing_quality/api/api.hpp"
|
||||
|
||||
#include "routing/routing_callbacks.hpp"
|
||||
|
||||
@@ -72,8 +72,7 @@ bool AreRoutesWithSameEnds(routing::routes_builder::RoutesBuilder::Result const
|
||||
auto const & anotherFinish = anotherResult.GetFinishPoint();
|
||||
|
||||
double constexpr kEps = 1e-10;
|
||||
return AlmostEqualAbs(start, anotherStart, kEps) &&
|
||||
AlmostEqualAbs(finish, anotherFinish, kEps);
|
||||
return AlmostEqualAbs(start, anotherStart, kEps) && AlmostEqualAbs(finish, anotherFinish, kEps);
|
||||
}
|
||||
|
||||
template <typename AnotherResult>
|
||||
@@ -95,8 +94,7 @@ bool FindAnotherResponse(routing::routes_builder::RoutesBuilder::Result const &
|
||||
|
||||
struct Result
|
||||
{
|
||||
Result(std::string mapsmeDumpPath, std::string anotherDumpPath,
|
||||
ms::LatLon const & start, ms::LatLon const & finish,
|
||||
Result(std::string mapsmeDumpPath, std::string anotherDumpPath, ms::LatLon const & start, ms::LatLon const & finish,
|
||||
double similarity, double etaDiffPercent);
|
||||
|
||||
bool operator<(Result const & rhs) const;
|
||||
@@ -170,24 +168,17 @@ private:
|
||||
std::vector<Item> m_routesCounter;
|
||||
};
|
||||
|
||||
void CreatePythonScriptForDistribution(std::string const & pythonScriptPath,
|
||||
std::string const & title,
|
||||
void CreatePythonScriptForDistribution(std::string const & pythonScriptPath, std::string const & title,
|
||||
std::vector<double> const & values);
|
||||
|
||||
void CreatePythonGraphByPointsXY(std::string const & pythonScriptPath,
|
||||
std::string const & xlabel,
|
||||
std::string const & ylabel,
|
||||
std::vector<std::vector<m2::PointD>> const & graphics,
|
||||
void CreatePythonGraphByPointsXY(std::string const & pythonScriptPath, std::string const & xlabel,
|
||||
std::string const & ylabel, std::vector<std::vector<m2::PointD>> const & graphics,
|
||||
std::vector<std::string> const & legends);
|
||||
|
||||
/// \brief Create python file, that show bar graph, where labels of bars are keys of |stat| and
|
||||
/// heights area values of |stat|.
|
||||
void CreatePythonBarByMap(std::string const & pythonScriptPath,
|
||||
std::vector<std::string> const & barLabels,
|
||||
std::vector<std::vector<double>> const & barHeights,
|
||||
std::vector<std::string> const & legends,
|
||||
std::string const & xlabel,
|
||||
std::string const & ylabel,
|
||||
bool drawPercents = true);
|
||||
void CreatePythonBarByMap(std::string const & pythonScriptPath, std::vector<std::string> const & barLabels,
|
||||
std::vector<std::vector<double>> const & barHeights, std::vector<std::string> const & legends,
|
||||
std::string const & xlabel, std::string const & ylabel, bool drawPercents = true);
|
||||
} // namespace routing_quality_tool
|
||||
} // namespace routing_quality
|
||||
|
||||
Reference in New Issue
Block a user