Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
949d5db4
Verified
Commit
949d5db4
authored
Feb 11, 2021
by
Tobias WEBER
Browse files
added a link
parent
e7b9ac2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/tascalc/cov.py
View file @
949d5db4
...
...
@@ -5,7 +5,8 @@
# @date 30-mar-2019
# @license GPLv3, see 'LICENSE' file
#
# for a good explanation of the covariance matrix method, see, e.g., (Arens 2015), pp. 795 and 1372.
# @desc For a good explanation of the covariance matrix method, see (Arens 2015), pp. 795 and 1372.
# @desc reimplements the functionality of https://github.com/McStasMcXtrace/McCode/blob/master/tools/Legacy-Perl/mcresplot.pl
#
import
os
...
...
@@ -54,6 +55,7 @@ sig2hwhm = np.sqrt(2. * np.log(2.))
sig2fwhm
=
2.
*
sig2hwhm
#
# normalises events and filters out too low probabilities
#
...
...
@@ -217,6 +219,7 @@ def proj_quad(_E, idx):
return
E
-
vv
#
# describes the ellipsoid by a principal axis trafo and by 2d cuts
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment