Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
b8a07c02
Commit
b8a07c02
authored
Aug 02, 2017
by
Gregory Ashton
Browse files
Adds DMoff threshold macro
parent
fc7e98ae
Changes
1
Show whitespace changes
Inline
Side-by-side
pyfstat/helper_functions.py
View file @
b8a07c02
...
...
@@ -274,3 +274,10 @@ def get_covering_band(tref, tstart, tend, F0, F1, F2):
return
lalpulsar
.
CWSignalCoveringBand
(
tstart
,
tend
,
psr
,
0
,
0
,
0
)
def
twoFDMoffThreshold
(
twoFon
,
knee
=
400
,
twoFDMoffthreshold_below_threshold
=
62
,
prefactor
=
0.9
,
offset
=
0.5
):
""" Calculation of the 2F_DMoff threshold, see Eq 2 of arXiv:1707.5286 """
if
twoFon
<=
knee
:
return
twoFDMoffthreshold_below_threshold
else
:
return
10
**
(
prefactor
*
np
.
log10
(
twoFon
-
offset
))
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