py21cmmc.likelihood.Likelihood1DPowerLightconeUpper.computeLikelihood#

Likelihood1DPowerLightconeUpper.computeLikelihood(model)[source]#

Compute the likelihood given 1D power spectrum values at the same k-bins as the data.

Parameters:

model (np.ndarray) – 1D Power spectrum in log10(mK^2) and its k bin values in /Mpc If there is a window function available, then input the PS after the WF has been applied.

Returns:

lnl (float) – Log likelihood for the provided model. For H1C: Data shape = 5 fields, 37 kbins, 4 = [kval, power, variance], 2 (band1=10 band2=8)