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
2bb82b59
Commit
2bb82b59
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm minary, maxary
parent
3b466a4c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1615
simplify Bin1D and IAxis
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Base/Axis/DiscreteAxis.cpp
+0
-14
0 additions, 14 deletions
Base/Axis/DiscreteAxis.cpp
Base/Axis/DiscreteAxis.h
+0
-2
0 additions, 2 deletions
Base/Axis/DiscreteAxis.h
with
0 additions
and
16 deletions
Base/Axis/DiscreteAxis.cpp
+
0
−
14
View file @
2bb82b59
...
@@ -76,20 +76,6 @@ void DiscreteAxis::print(std::ostream& ostr) const
...
@@ -76,20 +76,6 @@ void DiscreteAxis::print(std::ostream& ostr) const
ostr
<<
precision
<<
m_coordinates
.
back
()
<<
"])"
;
ostr
<<
precision
<<
m_coordinates
.
back
()
<<
"])"
;
}
}
double
DiscreteAxis
::
minary
(
size_t
index
)
const
{
if
(
index
==
0
)
return
m_coordinates
.
front
();
return
0.5
*
(
m_coordinates
[
index
]
+
m_coordinates
[
index
-
1
]);
}
double
DiscreteAxis
::
maxary
(
size_t
index
)
const
{
if
(
index
+
1
==
m_coordinates
.
size
())
return
m_coordinates
.
back
();
return
0.5
*
(
m_coordinates
[
index
]
+
m_coordinates
[
index
+
1
]);
}
void
DiscreteAxis
::
checkIndex
(
size_t
index
)
const
void
DiscreteAxis
::
checkIndex
(
size_t
index
)
const
{
{
if
(
m_coordinates
.
size
()
>
index
)
if
(
m_coordinates
.
size
()
>
index
)
...
...
This diff is collapsed.
Click to expand it.
Base/Axis/DiscreteAxis.h
+
0
−
2
View file @
2bb82b59
...
@@ -31,8 +31,6 @@ public:
...
@@ -31,8 +31,6 @@ public:
private:
private:
void
print
(
std
::
ostream
&
ostr
)
const
override
;
void
print
(
std
::
ostream
&
ostr
)
const
override
;
double
minary
(
size_t
index
)
const
;
double
maxary
(
size_t
index
)
const
;
void
checkIndex
(
size_t
index
)
const
;
void
checkIndex
(
size_t
index
)
const
;
void
sanityCheck
()
const
;
void
sanityCheck
()
const
;
...
...
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