Function sampling::rees::merged_log_prob_rees
source · pub fn merged_log_prob_rees<Extra, Ensemble, R, Hist, Energy, S, Res>(
rees: &[Rees<Extra, Ensemble, R, Hist, Energy, S, Res>]
) -> Result<(Vec<f64>, Hist), HistErrors>
Expand description
Merge probability density of multiple rees simulations
- Will calculate the merged log (base e) probability density. Also returns the corresponding histogram.
rees
does not need to be sorted in any way
Errors
- will return
HistErrors::EmptySlice
if therees
slice is empty - will return other HistErrors if the intervals have no overlap