Skip to content
Snippets Groups Projects
Commit 67a01479 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm Numeric::GetAbsoluteDifference

parent 01ad25d8
No related branches found
No related tags found
1 merge request!1582minor cleanup
......@@ -19,12 +19,6 @@
namespace Numeric {
//! Returns the absolute value of the difference between a and b.
double GetAbsoluteDifference(double a, double b)
{
return std::abs(a - b);
}
//! Returns the safe relative difference, which is 2(|a-b|)/(|a|+|b|) except in special cases.
double relativeDifference(double a, double b)
{
......
......@@ -24,8 +24,6 @@
namespace Numeric {
double GetAbsoluteDifference(double a, double b);
double relativeDifference(double a, double b);
double GetLogDifference(double a, double b);
......
......@@ -202,7 +202,7 @@ SimulationResult SimDataPair::absoluteDifference() const
SimulationResult result = m_sim_data;
for (size_t i = 0; i < N; ++i)
result[i] = Numeric::GetAbsoluteDifference(result[i], m_exp_data[i]);
result[i] = std::abs(result[i] - m_exp_data[i]);
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment