Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
distance_integrator.h File Reference

Prototypes

double log_dVC_dVL (double DL)
 
void dVC_dVL_init (void)
 
double log_radial_integrand (double r, void *params)
 
double log_radial_integral (double r1, double r2, double p, double b, int k, int cosmology, int gaussian)
 
log_radial_integratorlog_radial_integrator_init (double r1, double r2, int k, int cosmology, double pmax, size_t size, int gaussian)
 Distance integrator for marginalisation. More...
 
void log_radial_integrator_free (log_radial_integrator *integrator)
 Free an integrator. More...
 
double log_radial_integrator_eval (const log_radial_integrator *integrator, double p, double b, double log_p, double log_b)
 Evaluate the log distance integrator for given SNRs. More...
 

Go to the source code of this file.

Data Structures

struct  log_radial_integrator
 
struct  radial_integrand_params
 

Function Documentation

◆ log_dVC_dVL()

double log_dVC_dVL ( double  DL)

Definition at line 56 of file distance_integrator.c.

◆ dVC_dVL_init()

void dVC_dVL_init ( void  )

Definition at line 69 of file distance_integrator.c.

◆ log_radial_integrand()

double log_radial_integrand ( double  r,
void *  params 
)

Definition at line 123 of file distance_integrator.c.

◆ log_radial_integral()

double log_radial_integral ( double  r1,
double  r2,
double  p,
double  b,
int  k,
int  cosmology,
int  gaussian 
)

Definition at line 143 of file distance_integrator.c.

◆ log_radial_integrator_init()

log_radial_integrator * log_radial_integrator_init ( double  r1,
double  r2,
int  k,
int  cosmology,
double  pmax,
size_t  size,
int  gaussian 
)

Distance integrator for marginalisation.

Assumes a besselI0-type marginalised phase likelihood.

Parameters
r1Minimum distance (Mpc)
r2Maximum distance (Mpc)
kExponent of distance prior \( p(r) propto r^k \)
cosmology0: Euclidean, 1: use co-moving volume prior
pmaxThe maximum optimal SNR to allow
sizeSize of lookup table
gaussianUse gaussian likelihood instead of phase-marginalised one

Definition at line 267 of file distance_integrator.c.

◆ log_radial_integrator_free()

void log_radial_integrator_free ( log_radial_integrator integrator)

Free an integrator.

Definition at line 364 of file distance_integrator.c.

◆ log_radial_integrator_eval()

double log_radial_integrator_eval ( const log_radial_integrator integrator,
double  p,
double  b,
double  log_p,
double  log_b 
)

Evaluate the log distance integrator for given SNRs.

With a template at reference distance (1Mpc), compute the marginal likelihood over distance. Uses the two SNRs \( p=sqrt(<h|h>) \) and \( b=<d|h> \).

Parameters
integratora log_radial_integrator
pThe optimal SNR \( p = sqrt(<h|h>) \)
bmatch between template and data \( b = <h|d> \)
log_plog(p)
log_blog(b)

Definition at line 379 of file distance_integrator.c.