Sub-Probability Distributions #
This file defines a type SPMF as a PMF extended with the option to fail.
The probability of failure is the missing mass to make the PMF sum to 1.
@[implicit_reducible]
Expose the induced monad instance on SPMF.
@[implicit_reducible]
Expose the lifting operations from PMF to SPMF given by OptionT.lift.
@[simp]
@[simp]
The set of outputs with non-zero probability mass.
Instances For
The functor map for SPMF equals PMF.map (Option.map f).