Copyright | (c) Donnacha Oisín Kidney 2021 |
---|---|
Maintainer | mail@doisinkidney.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
A Monus
for probability.
Documentation
A Monus
for probabilities, where the underlying Monoid
is the product
monoid.
NB: The order on this type is reversed from the "usual" order on probability. i.e.
>>>
0.8 < (0.4 :: Prob)
True
Instances
Bounded Prob Source # | |
Eq Prob Source # | |
Fractional Prob Source # | |
Data Prob Source # | |
Defined in Data.Monus.Prob gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Prob -> c Prob # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Prob # dataTypeOf :: Prob -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Prob) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Prob) # gmapT :: (forall b. Data b => b -> b) -> Prob -> Prob # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Prob -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Prob -> r # gmapQ :: (forall d. Data d => d -> u) -> Prob -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Prob -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Prob -> m Prob # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Prob -> m Prob # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Prob -> m Prob # | |
Num Prob Source # | |
Ord Prob Source # | |
Read Prob Source # | |
Real Prob Source # | |
Defined in Data.Monus.Prob toRational :: Prob -> Rational # | |
RealFrac Prob Source # | |
Show Prob Source # | |
Generic Prob Source # | |
Semigroup Prob Source # | |
Monoid Prob Source # | |
Arbitrary Prob Source # | |
NFData Prob Source # | |
Defined in Data.Monus.Prob | |
Monus Prob Source # | |
type Rep Prob Source # | |
Defined in Data.Monus.Prob |