CurryInfo: pflp-2.1.0 / PFLP.enum

definition: Info
 
enum :: [a] -> [Probability] -> Dist a
enum xs ps
  | 1.0 - (foldl (+) 0.0 ps') < 0.0001 && all (> 0.0) ps'
  = member (zipWith Dist xs ps')
  | otherwise
  = error ("PFLP.enum: probabilities do not add up to 1.0 " ++
             "or are not strictly positive")
 where ps' = take (length xs) ps
demand: Info
 no demanded arguments
deterministic: Info
 possibly non-deterministic operation
documentation: Info
 
Creates a distribution based on a given list of events and another list
providing the corresponding probabilities. This function also ensures that
the relevant probabilities add up to `1.0` and are strictly positive.
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 enum
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 [a] -> [Prelude.Float] -> Dist a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term