pub fn merged_log_probability_and_align<Ensemble, R, Hist, Energy, S, Res, Extra>(
rees: &[ReplicaExchangeEntropicSampling<Extra, Ensemble, R, Hist, Energy, S, Res>]
) -> Result<(Hist, Vec<f64, Global>, Vec<Vec<f64, Global>, Global>), HistErrors>where
Hist: Histogram + HistogramCombine + HistogramVal<Energy> + Send + Sync,
Energy: PartialOrd<Energy>,
Expand description
- Will calculate the merged log (base e) probability density (second return parameter).
- also returns the corresponding histogram (first return parameter)
- also returns aligned probability densities of intervals (base e) (third return parameter). They will be NaN for all entries, which the corresponding interval did not cover
- If an interval has multiple walkers, their probability will be merged before all probabilities are aligned
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