Skip to content
Snippets Groups Projects
Commit 05c3d67e authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Provide data accessor and RelativeDifference for SimulationResult

parent 088055b4
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,15 @@
#include <memory>
class IHistogram;
class SimulationResult;
//! Functions to work with intensity data.
//! @ingroup tools
namespace IntensityDataFunctions
{
namespace IntensityDataFunctions {
//! Returns sum of relative differences between each pair of elements:
//! (a, b) -> 2*abs(a - b)/(a + b) ( and zero if a-b=0 )
BA_CORE_API_ double RelativeDifference(const SimulationResult& dat, const SimulationResult& ref);
//! Returns relative difference between two data sets sum(dat[i] - ref[i])/ref[i]).
BA_CORE_API_ double getRelativeDifference(const OutputData<double>& dat,
......
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