Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
05c3d67e
Commit
05c3d67e
authored
7 years ago
by
Van Herck, Walter
Browse files
Options
Downloads
Patches
Plain Diff
Provide data accessor and RelativeDifference for SimulationResult
parent
088055b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/Instrument/IntensityDataFunctions.h
+5
-2
5 additions, 2 deletions
Core/Instrument/IntensityDataFunctions.h
with
5 additions
and
2 deletions
Core/Instrument/IntensityDataFunctions.h
+
5
−
2
View file @
05c3d67e
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment