pespace.inference.interface_bilby¶
Interface for using bilby to perform parameter estimation.
This module provides a bilby-compatible likelihood class enabling the use of various external samplers supported in bilby.
Classes
|
Bilby-compatible likelihood class for sampling. |
- class pespace.inference.interface_bilby.LikelihoodBilbyInterfaceTaichi(waveform, detector, channels)[source]¶
Bases:
LikelihoodBilby-compatible likelihood class for sampling.
TODO:
Add support for multiple detectors with shared or different frequency samples, observation durations, or cadences
Implement phase, time, and distance marginalization
- Parameters:
waveform (BaseWaveform | WaveformLALSimulationInterface)
detector (InterferometerAntenna | tuple[InterferometerAntenna])
channels (tuple[str])
- __init__(waveform, detector, channels)[source]¶
Initialize the Bilby likelihood interface.
- Parameters:
waveform (BaseWaveform or WaveformLALSimulationInterface) – Waveform model instance that provides the
waveform_containerattribute andupdate_waveformmethod for generating gravitational wave signals.detector (InterferometerAntenna or tuple of InterferometerAntenna) – Detector instance(s) for computing detector responses. Each detector must have
tdi_dataandupdate_detector_responseattributes/methods.channels (tuple of str) – TDI channels used in the likelihood computation. Must be a subset of (‘A’, ‘E’, ‘T’). Common choices are (‘A’, ‘E’, ‘T’) or (‘A’, ‘E’).
- Raises:
ValueError – If any channel in
channelsis not one of ‘A’, ‘E’, or ‘T’.
Notes
The likelihood computation uses the Whittle approximation, which assumes Gaussian and stationary noise.
- log_likelihood(parameters)[source]¶
Calculate the log-likelihood value for the given parameters.
This method updates the waveform model with the parameter values, computes the detector response for each detector, and evaluates the Whittle likelihood across all specified TDI channels.
- Parameters:
parameters (dict) – Dictionary of the parameter names and values used to update the waveform model and the detector responses.
- Returns:
The log-likelihood value summed over all detectors and channels.
- Return type:
float