Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module defines a Vector as a list of pairs. In the context of QIO, a Vector is the type used to represent a probability distribution.
Documentation
A Vector over types x
and a
is a wrapper around list of
pairs of a
and x
.
(<@@>) :: (Num x, Eq a) => Vec x a -> a -> x Source #
The "probability" of an object in a Vector, is the sum of all the probabilities associated with that object.