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

rm unused Numeric::GetLogDifference

parent 67a01479
No related branches found
No related tags found
1 merge request!1582minor cleanup
......@@ -30,13 +30,4 @@ double relativeDifference(double a, double b)
return std::abs(a - b) / avg_abs;
}
//! Returns the difference of the logarithm; input values are truncated at the minimum positive
//! value
double GetLogDifference(double a, double b)
{
double a_t = fmax(a, std::numeric_limits<double>::min());
double b_t = fmax(b, std::numeric_limits<double>::min());
return std::abs(std::log(a_t) - std::log(b_t));
}
} // namespace Numeric
......@@ -26,8 +26,6 @@ namespace Numeric {
double relativeDifference(double a, double b);
double GetLogDifference(double a, double b);
} // namespace Numeric
#endif // BORNAGAIN_BASE_MATH_NUMERIC_H
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