nessai.posterior
Functions related to computing the posterior samples.
Module Contents
Functions
|
Returns the log-evidence and log-weights for the log-likelihood samples |
|
Draw posterior samples given the nested samples and number of live points. |
- nessai.posterior.compute_weights(samples, nlive)
Returns the log-evidence and log-weights for the log-likelihood samples assumed to the result of nested sampling with nlive live points
- Parameters
- samplesarray_like
Log-likelihood samples.
- nliveint
Number of live points used in nested sampling.
- Returns
- float
The computed log-evidence.
- array_like
Array of computed weights (already normalised by the log-evidence).
- nessai.posterior.draw_posterior_samples(nested_samples, nlive)
Draw posterior samples given the nested samples and number of live points.
- Parameters
- nested_samplesstructured array
Array of nested samples.
- nliveint
Number of live points used during nested sampling.
- Returns
- array_like
Samples from the posterior distribution.