Log-domain floating point numbers


Version on this page:0.12.1@rev:1
LTS Haskell 22.22:0.14.0
Stackage Nightly 2024-05-21:0.14.0
Latest on Hackage:0.14.0

See all snapshots logfloat appears in

BSD-3-Clause licensed by wren ng thornton
Maintained by [email protected]
This version can be pinned in stack with:logfloat-0.12.1@sha256:5a1d9d05bf6303a90e866b5347d562eafd4030ece175461c9beae4ba396da419,2594

Module documentation for 0.12.1

  • Data
    • Data.Number
      • Data.Number.LogFloat
      • Data.Number.PartialOrd
      • Data.Number.RealToFrac
      • Data.Number.Transfinite
  • Hugs
    • Hugs.RealFloat
Depends on 2 packages(full list with versions):
Used by 1 package in lts-0.7(full list with versions):

This module presents a type for storing numbers in the log-domain. The main reason for doing this is to prevent underflow when multiplying many probabilities as is done in Hidden Markov Models. It is also helpful for preventing overflow.