Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
lalsuite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
109
Issues
109
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
29
Merge Requests
29
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
lalsuite
Commits
c5fa75f1
Commit
c5fa75f1
authored
Dec 18, 2018
by
John Douglas Veitch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spin tilt prior for lalinference_o2 branch
parent
f7640018
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
lalinference/src/LALInferencePrior.c
lalinference/src/LALInferencePrior.c
+2
-18
No files found.
lalinference/src/LALInferencePrior.c
View file @
c5fa75f1
...
...
@@ -473,22 +473,6 @@ REAL8 LALInferenceInspiralPrior(LALInferenceRunState *runState, LALInferenceVari
if
(
LALInferenceGetVariableVaryType
(
params
,
"declination"
)
==
LALINFERENCE_PARAM_LINEAR
)
logPrior
+=
log
(
fabs
(
cos
(
*
(
REAL8
*
)
LALInferenceGetVariable
(
params
,
"declination"
))));
}
if
(
LALInferenceCheckVariable
(
params
,
"tilt_spin1"
))
{
LALInferenceParamVaryType
vtype
=
LALInferenceGetVariableVaryType
(
params
,
"tilt_spin1"
);
if
(
vtype
!=
LALINFERENCE_PARAM_FIXED
&&
vtype
!=
LALINFERENCE_PARAM_OUTPUT
)
{
logPrior
+=
log
(
fabs
(
sin
(
*
(
REAL8
*
)
LALInferenceGetVariable
(
params
,
"tilt_spin1"
))));
}
}
if
(
LALInferenceCheckVariable
(
params
,
"tilt_spin2"
))
{
LALInferenceParamVaryType
vtype
=
LALInferenceGetVariableVaryType
(
params
,
"tilt_spin2"
);
if
(
vtype
!=
LALINFERENCE_PARAM_FIXED
&&
vtype
!=
LALINFERENCE_PARAM_OUTPUT
)
{
logPrior
+=
log
(
fabs
(
sin
(
*
(
REAL8
*
)
LALInferenceGetVariable
(
params
,
"tilt_spin2"
))));
}
}
if
(
LALInferenceCheckVariable
(
params
,
"logmc"
))
{
mc
=
exp
(
*
(
REAL8
*
)
LALInferenceGetVariable
(
params
,
"logmc"
));
...
...
@@ -600,9 +584,9 @@ REAL8 LALInferenceInspiralPrior(LALInferenceRunState *runState, LALInferenceVari
if
(
volumetric_spins
)
{
/* Volumetric prior marginalised onto z component */
REAL8
a
=
LALInferenceGetREAL8Variable
(
params
,
"a_spin
1
"
);
REAL8
a
=
LALInferenceGetREAL8Variable
(
params
,
"a_spin
2
"
);
REAL8
a_max
,
a_min
;
LALInferenceGetMinMaxPrior
(
runState
->
priorArgs
,
"a_spin
1
"
,
&
a_min
,
&
a_max
);
LALInferenceGetMinMaxPrior
(
runState
->
priorArgs
,
"a_spin
2
"
,
&
a_min
,
&
a_max
);
REAL8
V
=
(
4
.
/
3
.)
*
LAL_PI
*
(
a_max
*
a_max
*
a_max
);
logPrior
+=
log
(
fabs
((
3
.
/
4
.)
*
(
a_max
*
a_max
-
a
*
a
)))
-
log
(
fabs
(
V
));
...
...
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