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
28
Merge Requests
28
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
2f0f8e60
Commit
2f0f8e60
authored
Mar 25, 2018
by
John Douglas Veitch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on normalisation
parent
1f9eaa7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
lalinference/src/LALInferenceInitCBC.c
lalinference/src/LALInferenceInitCBC.c
+5
-0
lalinference/src/LALInferenceLikelihood.c
lalinference/src/LALInferenceLikelihood.c
+1
-1
lalinference/src/distance_integrator.h
lalinference/src/distance_integrator.h
+1
-1
No files found.
lalinference/src/LALInferenceInitCBC.c
View file @
2f0f8e60
...
...
@@ -1292,6 +1292,11 @@ LALInferenceModel *LALInferenceInitCBCModel(LALInferenceRunState *state) {
LALInferenceRegisterUniformVariableREAL8
(
state
,
model
->
params
,
"logdistance"
,
log
(
Dinitial
),
log
(
Dmin
),
log
(
Dmax
),
distanceVary
)
;
if
(
LALInferenceGetProcParamVal
(
commandLine
,
"--margdist"
))
{
if
(
!
(
LALInferenceGetProcParamVal
(
commandLine
,
"--margphi"
)
||
LALInferenceGetProcParamVal
(
commandLine
,
"--margtimephi"
)))
{
fprintf
(
stderr
,
"ERROR: --margdist requires either --margphi or --margtimephi to be enabled"
);
exit
(
1
);
}
/* If using margdist, remove the distance parameters and add the ranges into the model params as a way of passing them in */
REAL8
a
=
log
(
Dmin
),
b
=
log
(
Dmax
);
LALInferenceAddMinMaxPrior
(
model
->
params
,
"logdistance"
,
&
a
,
&
b
,
LALINFERENCE_REAL8_t
);
...
...
lalinference/src/LALInferenceLikelihood.c
View file @
2f0f8e60
...
...
@@ -1138,7 +1138,7 @@ static REAL8 LALInferenceFusedFreqDomainLogLikelihood(LALInferenceVariables *cur
if
(
margdist
)
{
loglikelihood
=
LALInferenceMarginalDistanceLogLikelihood
(
dist_min
,
dist_max
,
sqrt
(
S
),
R
);
loglikelihood
=
LALInferenceMarginalDistanceLogLikelihood
(
dist_min
,
dist_max
,
sqrt
(
S
),
0
.
5
*
R
);
loglikelihood
-=
D
;
REAL8
distance_maxl
=
2
.
0
*
S
/
R
;
LALInferenceAddVariable
(
currentParams
,
"distance_maxl"
,
&
distance_maxl
,
LALINFERENCE_REAL8_t
,
LALINFERENCE_PARAM_OUTPUT
);
...
...
lalinference/src/distance_integrator.h
View file @
2f0f8e60
#include <gsl/gsl_spline.h>
#include <gsl/gsl_interp.h>
#include
"cubic_interp.h"
#include
<lal/cubic_interp.h>
typedef
struct
taglog_radial_integrator
{
bicubic_interp
*
region0
;
...
...
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