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
ad2320a1
Commit
ad2320a1
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
inline fct for analogy
parent
64f203bc
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
Tests/Functional/TestMachinery/ParameterPlan.cpp
+0
-27
0 additions, 27 deletions
Tests/Functional/TestMachinery/ParameterPlan.cpp
Tests/Functional/TestMachinery/ParameterPlan.h
+4
-4
4 additions, 4 deletions
Tests/Functional/TestMachinery/ParameterPlan.h
with
4 additions
and
31 deletions
Tests/Functional/TestMachinery/ParameterPlan.cpp
deleted
100644 → 0
+
0
−
27
View file @
64f203bc
// ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Tests/Functional/TestMachinery/ParameterPlan.cpp
//! @brief Implements class ParameterPlan
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************** //
#include
"ParameterPlan.h"
using
namespace
Fit
;
ParameterPlan
::
ParameterPlan
(
const
Parameter
&
param
,
double
expected_value
,
double
tolerance
)
:
m_expected_value
(
expected_value
),
m_tolerance
(
tolerance
),
m_parameter
(
param
)
{
}
Parameter
ParameterPlan
::
fitParameter
()
const
{
return
m_parameter
;
}
This diff is collapsed.
Click to expand it.
Tests/Functional/TestMachinery/ParameterPlan.h
+
4
−
4
View file @
ad2320a1
...
...
@@ -24,13 +24,13 @@
class
BA_CORE_API_
ParameterPlan
{
public:
ParameterPlan
(
const
Fit
::
Parameter
&
param
,
double
expected_value
,
double
tolerance
=
0.01
);
Fit
::
Parameter
fitParameter
()
const
;
ParameterPlan
(
const
Fit
::
Parameter
&
param
,
double
expected_value
,
double
tolerance
=
0.01
)
:
m_expected_value
(
expected_value
),
m_tolerance
(
tolerance
),
m_parameter
(
param
)
{}
Fit
::
Parameter
fitParameter
()
const
{
return
m_parameter
;
}
double
expectedValue
()
const
{
return
m_expected_value
;
}
double
tolerance
()
const
{
return
m_tolerance
;
}
void
setTolerance
(
double
tolerance
)
{
m_tolerance
=
tolerance
;
}
private
:
...
...
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