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
df80fd4e
Commit
df80fd4e
authored
10 years ago
by
Roman Tolchenov
Browse files
Options
Downloads
Patches
Plain Diff
Re #9579. Usage examples for SmoothData
parent
e4b9c757
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
Code/Mantid/docs/source/algorithms/SmoothData-v1.rst
+30
-0
30 additions, 0 deletions
Code/Mantid/docs/source/algorithms/SmoothData-v1.rst
with
30 additions
and
0 deletions
Code/Mantid/docs/source/algorithms/SmoothData-v1.rst
+
30
−
0
View file @
df80fd4e
...
...
@@ -19,4 +19,34 @@ value in the spectrum will be smoothed by making it the average of the
first 3 values, the next will use the first 4 and then the third and
onwards will use the full 5 points in the averaging.
Usage
-----
Example 1: use same NPoints for all spectra
###########################################
.. testcode::
# Create a workspace
ws = CreateSampleWorkspace()
# Smooth the spectra in ws NPoints = 3
smooth = SmoothData( ws, 3)
Example 2: use different NPoints for groups of spectra
######################################################
.. testcode::
# Create a workspace
ws = CreateSampleWorkspace()
# Greate a grouping workspace to put detectors from banks
# bank1 and bank2 into two separate groups
gr = CreateGroupingWorkspace(ws,GroupNames='bank1,bank2')
# Smooth the spectra in ws: first group with NPoints = 3 and
# second group with NPoints = 5
smooth = SmoothData( ws, [3,5], GroupingWorkspace='gr')
.. categories::
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