|
NLP.Probability.Observation |
|
|
|
|
|
Synopsis |
|
|
|
|
Observation
|
|
This module provides a simple way to collect observations (counts), particularly within a monoid.
Use observation for each observed event and mappend for combining observations. Finally finish before estimating probabilities.
|
|
|
|
|
Observations over a set of events. The param event must be an instance of class Event
| Instances | |
|
|
|
Trivial type family for events. Just use EventMap = M.Map for most cases. Allows clients to specify the type of map used, when efficiency is important.
| | Associated Types | type EventMap event :: * -> * -> * | Source |
|
| | Methods | | | Instances | |
|
|
|
Observation of a single event
|
|
|
|
|
Manually increment the count of an event
|
|
|
Constructors | Observed | | observed :: EventMap event event Count | | total :: Double | Gives the total number of observations sum_a C(a)
| unique :: Count | Gives the total number of events observed at least once {a | C(a) > 1}
|
|
|
|
|
|
Finish a set of offline observations so that they can be used to estimate
likelihood
|
|
|
|
Produced by Haddock version 2.6.0 |