| License | MIT |
|---|---|
| Maintainer | mail@doisinkidney.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Semiring.Numeric
Description
Synopsis
- newtype Bottleneck a = Bottleneck {
- getBottleneck :: a
- newtype Division a = Division {
- getDivision :: a
- newtype Łukasiewicz a = Łukasiewicz {
- getŁukasiewicz :: a
- newtype Viterbi a = Viterbi {
- getViterbi :: a
- newtype PosFrac a = PosFrac {
- getPosFrac :: a
- newtype PosInt a = PosInt {
- getPosInt :: a
Documentation
newtype Bottleneck a Source #
Constructors
| Bottleneck | |
Fields
| |
Instances
Constructors
| Division | |
Fields
| |
Instances
newtype Łukasiewicz a Source #
Wikipedia has some information on this. Also this paper.
(<+>) =maxx<.>y =max0 (x+y-1)zero=zeroone=one
Constructors
| Łukasiewicz | |
Fields
| |
Instances
Wikipedia has some information on this. Also this paper. Apparently used for probabilistic parsing.
(<+>) =max(<.>) = (<.>)zero=zeroone=one
Constructors
| Viterbi | |
Fields
| |
Instances
Adds a star operation to fractional types.
(<+>) = (<+>) (<.>) = (<.>)zero=zeroone=onestarx = if x < 1 then 1 / (1 - x) elsepositiveInfinity
Constructors
| PosFrac | |
Fields
| |
Instances
Adds a star operation to integral types.
(<+>) = (<+>) (<.>) = (<.>)zero=zeroone=onestar0 = 1star_ =positiveInfinity