Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
GstLAL
Commits
46e3d41f
Commit
46e3d41f
authored
Aug 17, 2019
by
Chad Hanna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inspiral_lr, inspiral_extrinsics: more snr chisq tuning
parent
39bed653
Pipeline
#75582
passed with stages
in 29 minutes and 27 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
gstlal-inspiral/python/stats/inspiral_extrinsics.py
gstlal-inspiral/python/stats/inspiral_extrinsics.py
+1
-1
gstlal-inspiral/python/stats/inspiral_lr.py
gstlal-inspiral/python/stats/inspiral_lr.py
+1
-1
No files found.
gstlal-inspiral/python/stats/inspiral_extrinsics.py
View file @
46e3d41f
...
...
@@ -945,7 +945,7 @@ class NumeratorSNRCHIPDF(rate.BinnedLnPDF):
snr2
=
snr
**
2.
ncparam_per_pf
=
snr2
# takes into account the mean depending on noncentrality parameter
snrchi2
=
numpy
.
outer
(
snr2
*
df
*
(
1.0
+
numpy
.
mean
(
pfs
)),
rcoss
)
snrchi2
=
numpy
.
outer
(
snr2
*
df
*
(
1.0
+
max
(
pfs
)),
rcoss
)
arr
=
numpy
.
zeros_like
(
lnpdf
.
array
)
for
pf
in
pfs
:
...
...
gstlal-inspiral/python/stats/inspiral_lr.py
View file @
46e3d41f
...
...
@@ -423,7 +423,7 @@ class LnSignalDensity(LnLRDensity):
vtdict
=
self
.
horizon_history
.
functional_integral_dict
(
window
.
shift
(
float
(
gps
)),
lambda
D
:
D
**
3.
)
return
dict
((
instrument
,
(
vt
/
t
)
**
(
1.
/
3.
))
for
instrument
,
vt
in
vtdict
.
items
())
def
add_signal_model
(
self
,
prefactors_range
=
(
0.001
,
0.30
),
df
=
1
5
0
,
inv_snr_pow
=
4.
):
def
add_signal_model
(
self
,
prefactors_range
=
(
0.001
,
0.30
),
df
=
1
0
0
,
inv_snr_pow
=
4.
):
# normalize to 10 *mi*llion signals. this count makes the
# density estimation code choose a suitable kernel size
inspiral_extrinsics
.
NumeratorSNRCHIPDF
.
add_signal_model
(
self
.
densities
[
"snr_chi"
],
1e12
,
prefactors_range
,
df
,
inv_snr_pow
=
inv_snr_pow
,
snr_min
=
self
.
snr_min
)
...
...
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