/// Event posteriors sorted in descending order.
Event posteriors sorted in descending order.
Event posteriors sorted in descending order .
pub fn event_posteriors(&self) -> impl Iterator<Item = (&Event, LogProb)> {
        self.joint_probs
            .iter()
            .map(|(event, prob)| (event, prob - self.marginal))
            .sorted_by_key(|(_, prob)| -NotNan::new(**prob).unwrap())
    }
pub fn event_posteriors ( & self ) -> impl Iterator < Item = ( & Event , LogProb ) > { self . joint_probs . iter ( ) . map ( | ( event , prob ) | ( event , prob - self . marginal ) ) . sorted_by_key ( | ( _ , prob ) | - NotNan :: new ( * * prob ) . unwrap ( ) ) }
Event posteriors sorted in descending order.
Event posteriors sorted in descending order .
&self