cogwheel.likelihood.marginalization.base.MarginalizationInfoHM

class cogwheel.likelihood.marginalization.base.MarginalizationInfoHM(qmc_sequence_id: int, ln_numerators: ndarray, q_inds: ndarray, sky_inds: ndarray, t_first_det: ndarray, d_h: ndarray, h_h: ndarray, tdet_inds: ndarray, proposals_n_qmc: list, proposals: list, o_inds: ndarray, flip_psi: ndarray)

Bases: MarginalizationInfo

Like MarginalizationInfo except:

  • it additionally contains .o_inds

  • .d_h has dtype float, not complex.

Attributes:
o_indsint array of length n_important

Indices to the orbital phase.

d_hfloat array of length n_important

Real inner product ⟨d|h⟩.

flip_psiint array of length n_important

Whether to add pi/2 to psi.

Methods

update

Update entries of this instance of MarginalizationInfo to include information from another instance.

Attributes

o_inds

flip_psi

qmc_sequence_id

ln_numerators

q_inds

sky_inds

t_first_det

d_h

h_h

tdet_inds

proposals_n_qmc

proposals

weights

weights_q

n_qmc

n_effective

lnl_marginalized

update(other)

Update entries of this instance of MarginalizationInfo to include information from another instance. The intended use is to extend the QMC sequence if it has too low .n_effective.

Parameters:
otherMarginalizationInfo

Typically self will be the first half of the extended QMC sequence and other would be the second half.