| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Statistics.Odds
Description
Provides newtypes for odds, log-odds, and discretized versions.
Synopsis
- newtype Odds = Odds {}
- newtype DiscLogOdds = DiscLogOdds {}
Documentation
Odds.
newtype DiscLogOdds Source #
Encodes log-odds that have been rounded or clamped to integral numbers.
One advantage this provides is more efficient "maximum/minimum" calculations
compared to using Doubles.
Note that these are "explicit" log-odds. Each numeric operation uses the
underlying operation on Int.
Constructors
| DiscLogOdds | |
Fields | |