cogwheel.pn_coordinates

Module to generate intrinsic parameter samples with Quasi Monte Carlo from an approximation of the posterior. This uses an approximation of the likelihood that accounts for the post-Newtonian inspiral and the cutoff frequency.

Classes IntrinsicParameterProposal, _InspiralAnalysis and _MergerAnalysis are defined. IntrinsicParameterProposal is the top-level class that most users would use.

Example usage

# ``post`` is an instance of ``posterior.Posterior``
intrinsic_proposal = IntrinsicParameterProposal.from_posterior(post)
qmc_samples = intrinsic_proposal.generate_intrinsic_samples(14)

Functions

chieff_from_mtot_fmerger

Return chieff that satisfies get_f_merger(mtot, chieff) = f_merger.

get_f_merger

Estimate the merger frequency (Hz) [Ajith+ arxiv.org/abs/0909.2867].

unique_qr

QR decomposition ensuring R has positive diagonal elements.

Classes

IntrinsicParameterProposal

Provide a method generate_intrinsic_samples that generates samples of intrinsic parameters (per .params) from an importance-sampling proposal using Quasi Monte Carlo.

TruncatedDistribution

Truncate a distribution.

Exceptions

UnphysicalMtotFmerger

Raise when no solution with -1 < chieff < 1 satisfies