py21cmmc.likelihood.LikelihoodNeutralFractionTwoSided#
- class py21cmmc.likelihood.LikelihoodNeutralFractionTwoSided(redshift=5.9, xHI=0.06, xHI_sigma=0.05)[source]#
A likelihood based on the measured neutral fraction at a range of redshifts.
This likelihood is vectorized i.e., it accepts an array of
astro_params
. SeeLikelihoodNeutralFraction
for more information.The log-likelihood statistic is a simple chi^2.
Methods
__init__
([redshift, xHI, xHI_sigma])Neutral fraction likelihood/prior.
computeLikelihood
(model)Compute the likelihood.
Compute and return a model dictionary at the fiducial set of parameters.
lnprob
(model, data, sigma)Compute the log prob given a model, data and error.
reduce_data
(ctx)Return a dictionary of model quantities from the context.
setup
()Perform post-init setup.
Attributes
Reference to the
LikelihoodComputationChain
containing this core.All CMB core modules that are loaded.
All coeval core modules that are loaded.
The first core that appears in the requirements.
All emulator core modules that are loaded.
All lightcone core modules that are loaded.
Names of the parameters of the full chain.