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
b7960a06
Commit
b7960a06
authored
10 years ago
by
Lynch, Vickie
Browse files
Options
Downloads
Patches
Plain Diff
Refs #9714 one more doc test
parent
d25d6c10
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
Code/Mantid/docs/source/algorithms/CropWorkspace-v1.rst
+1
-1
1 addition, 1 deletion
Code/Mantid/docs/source/algorithms/CropWorkspace-v1.rst
Code/Mantid/docs/source/algorithms/CrossCorrelate-v1.rst
+22
-0
22 additions, 0 deletions
Code/Mantid/docs/source/algorithms/CrossCorrelate-v1.rst
with
23 additions
and
1 deletion
Code/Mantid/docs/source/algorithms/CropWorkspace-v1.rst
+
1
−
1
View file @
b7960a06
...
...
@@ -28,7 +28,7 @@ of the input one.
Usage
-----
**Example - Crop a 5-bin works
a
pce**
**Example - Crop a 5-bin worksp
a
ce**
.. testcode:: ExCropWorkspace
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/docs/source/algorithms/CrossCorrelate-v1.rst
+
22
−
0
View file @
b7960a06
...
...
@@ -21,4 +21,26 @@ reference. The cross correlation function is computed in the range
More details can be found
`here. <http://en.wikipedia.org/wiki/Cross-correlation>`__
Usage
-----
**Example - Crosscorrelate 2 spectra**
.. testcode:: ExCrossCorrelate
#Create a workspace with 2 spectra with five bins of width 0.5
ws = CreateSampleWorkspace(BankPixelWidth=1, XUnit='dSpacing', XMax=5, BinWidth=0.5)
ws = ScaleX(InputWorkspace='ws', Factor=0.5, Operation='Add', IndexMin=1, IndexMax=1)
# Run algorithm removing first and last bins
OutputWorkspace = CrossCorrelate(InputWorkspace='ws', WorkspaceIndexMax=1, XMin=2, XMax=4)
# Show workspaces
print "AutoCorrelation",OutputWorkspace.readY(0)
print "CrossCorrelation",OutputWorkspace.readY(1)
.. testoutput:: ExCrossCorrelate
AutoCorrelation [-0.01890212 1. -0.01890212]
CrossCorrelation [-0.68136257 0.16838401 0.45685055]
.. 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