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

Merge probability density of multiple rees simulations

  • 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

Errors

  • will return HistErrors::EmptySlice if the rees slice is empty
  • will return other HistErrors if the intervals have no overlap