figaro.credible_regionsΒΆ

Functions

ConfidenceArea(log_skymap, ra_grid, dec_grid)

Compute the credible area(s) for a 2D probability distribution

ConfidenceVolume(log_volume_map, ra_grid, ...)

Compute the credible volume(s) for a 3D probability distribution

FindHeightForLevel(inLogArr, adLevels, logdd)

Given a probability array, computes the heights corresponding to some given credible levels.

FindHeights(args)

Find height correspinding to a certain credible level given a sorted array of probabilities and the corresponding cumulative

FindLevelForHeight(inLogArr, logvalue, logdd)

Given a probability array, computes the credible levels corresponding to a given height.

FindNearest_Grid(grid, value)

Find the closest grid point to value.

FindNearest_Volume(ra, dec, dist, value)

Find the pixel that contains the triplet (ra', dec', D') stored in value.