Function sampling::glue::average_merged_and_aligned
source · pub fn average_merged_and_aligned<Hist, H, T>(
log_prob: Vec<Vec<f64>>,
hists: &[H],
log_base: LogBase
) -> Result<Glued<Hist, T>, HistErrors>
Expand description
Calculate the probability density function from overlapping intervals
log_prob
is a vector of the logarithmic non-normalized probability densities
hists
is a vector of the corresponding histograms
LogBase
: Which base do the logarithmic probabilities have?
This uses a average merge, which first align all intervals and then merges the probability densities by averaging in the logarithmic space
The Glued allows you to easily write the probability density function to a file