pub fn merged_log_prob<Extra, Ensemble, R, Hist, Energy, S, Res>(
rees: &[ReplicaExchangeEntropicSampling<Extra, Ensemble, R, Hist, Energy, S, Res>]
) -> Result<(Vec<f64, Global>, Hist), HistErrors> where
Hist: HistogramVal<Energy> + HistogramCombine + Send + Sync,
Energy: PartialOrd<Energy>,
Expand description
- Will calculate the merged log (base e) probability density. Also returns the corresponding histogram.
rees
does not need to be sorted in any way
- will return
HistErrors::EmptySlice
if the rees
slice is empty
- will return other HistErrors if the intervals have no overlap