Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
ee1ed617
Commit
ee1ed617
authored
7 years ago
by
Samuel Jackson
Browse files
Options
Downloads
Patches
Plain Diff
Refs #20409 Update documentation
parent
b403eed7
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
Framework/Crystal/src/FindSXPeaks.cpp
+5
-4
5 additions, 4 deletions
Framework/Crystal/src/FindSXPeaks.cpp
docs/source/algorithms/FindSXPeaks-v1.rst
+23
-21
23 additions, 21 deletions
docs/source/algorithms/FindSXPeaks-v1.rst
with
28 additions
and
25 deletions
Framework/Crystal/src/FindSXPeaks.cpp
+
5
−
4
View file @
ee1ed617
...
@@ -58,13 +58,14 @@ void FindSXPeaks::init() {
...
@@ -58,13 +58,14 @@ void FindSXPeaks::init() {
declareProperty
(
"RangeLower"
,
EMPTY_DBL
(),
declareProperty
(
"RangeLower"
,
EMPTY_DBL
(),
"The X value to search from (default 0)"
);
"The X value to search from (default 0)"
);
declareProperty
(
"RangeUpper"
,
EMPTY_DBL
(),
declareProperty
(
"RangeUpper"
,
EMPTY_DBL
(),
"The X value to search to (default
FindSXPeak
s)"
);
"The X value to search to (default
total number of bin
s)"
);
auto
mustBePositive
=
boost
::
make_shared
<
BoundedValidator
<
int
>>
();
auto
mustBePositive
=
boost
::
make_shared
<
BoundedValidator
<
int
>>
();
mustBePositive
->
setLower
(
0
);
mustBePositive
->
setLower
(
0
);
declareProperty
(
"StartWorkspaceIndex"
,
0
,
mustBePositive
,
declareProperty
(
"StartWorkspaceIndex"
,
0
,
mustBePositive
,
"Start spectrum number (default 0)"
);
"Start workspace index (default 0)"
);
declareProperty
(
"EndWorkspaceIndex"
,
EMPTY_INT
(),
mustBePositive
,
declareProperty
(
"End spectrum number (default FindSXPeaks)"
);
"EndWorkspaceIndex"
,
EMPTY_INT
(),
mustBePositive
,
"End workspace index (default to total number of histograms)"
);
// ---------------------------------------------------------------
// ---------------------------------------------------------------
// Peak strategies + Threshold
// Peak strategies + Threshold
...
...
This diff is collapsed.
Click to expand it.
docs/source/algorithms/FindSXPeaks-v1.rst
+
23
−
21
View file @
ee1ed617
...
@@ -18,11 +18,12 @@ d-spacing.
...
@@ -18,11 +18,12 @@ d-spacing.
Strongest peak mode:
Strongest peak mode:
- The highest intensity bin is taken to be the peak, so the algorithm only
- The highest intensity bin is taken to be the peak, so the algorithm only
finds one peak per spectra
-
In this case the background is calculated as
finds one peak per spectra
.
In this case the background is calculated as
the
the
average of the start and end intensity multiplied by the provided
average of the start and end intensity multiplied by the provided
SignalBackground parameter. Peaks that are not above the background are
SignalBackground parameter. Peaks that are not above the background are
culled. - This peak finding mode is mainly used with the ResolutionStrategy
culled.
set to RelativeResolution. In this case, the resolution parameter defines a
- This peak finding mode is mainly used with the ResolutionStrategy set to
RelativeResolution. In this case, the resolution parameter defines a
tolerance which is compared to the absolute difference between the parameters
tolerance which is compared to the absolute difference between the parameters
:math:`\phi`, :math:`2\theta`, and :math:`t` of two found peaks. If the
:math:`\phi`, :math:`2\theta`, and :math:`t` of two found peaks. If the
absolute difference between any of the parameters for two peaks is greater
absolute difference between any of the parameters for two peaks is greater
...
@@ -35,23 +36,24 @@ Strongest peak mode:
...
@@ -35,23 +36,24 @@ Strongest peak mode:
All peaks mode:
All peaks mode:
- All peaks in each spectra above a certain threshold are detected as peaks
- All peaks in each spectra above a certain threshold are detected as peaks
(see below for the threshold). - In this case the user provides an
(see below for the threshold).
absolute, global background/threshold value which is set with the
- In this case the user provides an absolute, global background/threshold
AbsoluteBackground parameter. Peaks that are not above the absolute
value which is set with the AbsoluteBackground parameter. Peaks that are not
background are culled. A good way of identifying the background is to inspect
above the absolute background are culled. A good way of identifying the
your data set in pick mode within the InstrumentView. Ensure that your
background is to inspect your data set in pick mode within the
absolute background has been set high enough, else the algorithm will pick up
InstrumentView. Ensure that your absolute background has been set high
noise as peaks. - This peak finding mode provides the best results when
enough, else the algorithm will pick up noise as peaks.
used with the ResolutionStrategy set to AbsoluteResolution, which allows the
- This peak finding mode provides the best results when used with the
user to set absolute resolution values for the XUnitResolution (either in
ResolutionStrategy set to AbsoluteResolution, which allows the user to set
units of TOF or d-spacing), PhiResolution and the TwoThetaResolution
absolute resolution values for the XUnitResolution (either in units of TOF or
parameters. These resolution parameters define tolerances which are compared
d-spacing), PhiResolution and the TwoThetaResolution parameters. These
to the absolute difference between the parameters :math:`\phi`,
resolution parameters define tolerances which are compared to the absolute
:math:`2\theta`, and :math:`t` of two found peaks. If the absolute
difference between the parameters :math:`\phi`, :math:`2\theta`, and
difference between any of the parameters for two peaks is greater than the
:math:`t` of two found peaks. If the absolute difference between any of the
absolute tolerance then the two peaks are classed as not the same. i.e. if
parameters for two peaks is greater than the absolute tolerance then the two
:math:`|\phi_1 - \phi_2| > PhiTolerance then peaks 1 & 2 are not the same (as
peaks are classed as not the same. i.e. if :math:`|\phi_1 - \phi_2| >
well as similar definitions for :math:`2\theta` and :math:`t`).
PhiTolerance then peaks 1 & 2 are not the same (as well as similar
definitions for :math:`2\theta` and :math:`t`).
General points:
General points:
...
...
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