gns.array_checks module

gns.array_checks.checkInputParamsShape(priorParams, LhoodParams, nDims)[source]

checks prior and Lhood input arrays for toy models are correct shape

gns.array_checks.checkLhoodShape(livePointsLhood, nLive)[source]

scipy.stats.continuous_rv methods return Lhoods of shape (nLive, 1) whereas scipy.stats.multivariate_normal method return Lhoods of shape (nLive,). The former is converted to the latter for consistency (and the Keeton equations don’t work otherwise)

gns.array_checks.checkTargSupShape(targetSupport, nDims)[source]

check targetSupport is correct shape

gns.array_checks.checkinvPriorShape(livePointsPhys, livePointsShape)[source]

check livePointsPhys is correct shape