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
ea9668d4
Commit
ea9668d4
authored
11 years ago
by
Van Herck, Walter
Browse files
Options
Downloads
Patches
Plain Diff
Renamed DistributionWeighter to DistributionHandler
parent
f84a614f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/Algorithms/inc/DistributionHandler.h
+9
-9
9 additions, 9 deletions
Core/Algorithms/inc/DistributionHandler.h
Core/Algorithms/src/DistributionHandler.cpp
+8
-8
8 additions, 8 deletions
Core/Algorithms/src/DistributionHandler.cpp
with
17 additions
and
17 deletions
Core/Algorithms/inc/Distribution
Weight
er.h
→
Core/Algorithms/inc/Distribution
Handl
er.h
+
9
−
9
View file @
ea9668d4
...
...
@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Algorithms/inc/Distribution
Weight
er.h
//! @brief Defines class Distribution
Weight
er.
//! @file Algorithms/inc/Distribution
Handl
er.h
//! @brief Defines class Distribution
Handl
er.
//!
//! @homepage http://apps.jcns.fz-juelich.de/BornAgain
//! @license GNU General Public License v3 or higher (see COPYING)
...
...
@@ -13,8 +13,8 @@
//
// ************************************************************************** //
#ifndef DISTRIBUTION
WEIGHT
ER_H_
#define DISTRIBUTION
WEIGHT
ER_H_
#ifndef DISTRIBUTION
HANDL
ER_H_
#define DISTRIBUTION
HANDL
ER_H_
#include
"IParameterized.h"
#include
"ParameterDistribution.h"
...
...
@@ -22,15 +22,15 @@
class
IDistribution1D
;
//! @class Distribution
Weight
er
//! @class Distribution
Handl
er
//! @ingroup algorithms_internal
//! @brief Provides the functionality to average over parameter distributions
//! with weights
class
Distribution
Weight
er
:
public
IParameterized
class
Distribution
Handl
er
:
public
IParameterized
{
public:
Distribution
Weight
er
();
~
Distribution
Weight
er
();
Distribution
Handl
er
();
~
Distribution
Handl
er
();
//! add a samples parameter distribution
void
addParameterDistribution
(
const
std
::
string
&
param_name
,
...
...
@@ -53,4 +53,4 @@ private:
};
#endif
/* DISTRIBUTION
WEIGHT
ER_H_ */
#endif
/* DISTRIBUTION
HANDL
ER_H_ */
This diff is collapsed.
Click to expand it.
Core/Algorithms/src/Distribution
Weight
er.cpp
→
Core/Algorithms/src/Distribution
Handl
er.cpp
+
8
−
8
View file @
ea9668d4
...
...
@@ -2,8 +2,8 @@
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Algorithms/src/Distribution
Weight
er.cpp
//! @brief Implements class Distribution
Weight
er.
//! @file Algorithms/src/Distribution
Handl
er.cpp
//! @brief Implements class Distribution
Handl
er.
//!
//! @homepage http://apps.jcns.fz-juelich.de/BornAgain
//! @license GNU General Public License v3 or higher (see COPYING)
...
...
@@ -13,18 +13,18 @@
//
// ************************************************************************** //
#include
"Distribution
Weight
er.h"
#include
"Distribution
Handl
er.h"
Distribution
Weight
er
::
Distribution
Weight
er
()
Distribution
Handl
er
::
Distribution
Handl
er
()
:
m_nbr_combinations
(
1
)
{
}
Distribution
Weight
er
::~
Distribution
Weight
er
()
Distribution
Handl
er
::~
Distribution
Handl
er
()
{
}
void
Distribution
Weight
er
::
addParameterDistribution
(
void
Distribution
Handl
er
::
addParameterDistribution
(
const
std
::
string
&
param_name
,
const
IDistribution1D
&
distribution
,
size_t
nbr_samples
,
double
sigma_factor
)
{
...
...
@@ -37,12 +37,12 @@ void DistributionWeighter::addParameterDistribution(
}
}
size_t
Distribution
Weight
er
::
getTotalNumberOfSamples
()
const
size_t
Distribution
Handl
er
::
getTotalNumberOfSamples
()
const
{
return
m_nbr_combinations
;
}
double
Distribution
Weight
er
::
setParameterValues
(
ParameterPool
*
p_parameter_pool
,
double
Distribution
Handl
er
::
setParameterValues
(
ParameterPool
*
p_parameter_pool
,
size_t
index
)
{
if
(
index
>=
m_nbr_combinations
)
{
...
...
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