BiobaseTypes-0.1.2.1: Collection of types for bioinformatics

Safe HaskellNone
LanguageHaskell2010

Biobase.Types.NumericalExtremes

Description

For some values, we want to have different kind of extreme values. Consider a Double representing an energy. We want near infinities that do not lead to numeric problems.

TODO benchmark different extremes and their interplay with algebraic operations.

TODO consider the ieee754 package

Synopsis

Documentation

class NumericalExtremes x where Source #

Very large and small numbers with some numerical safety to 1/0 or maxBound (depending on if we are Integral or RealFloat.

We have:

maxFinite >= maxExtreme >= maxLarge
maxLarge >= minLarge

minLarge >= minExtreme >= minFinite.

Minimal complete definition

maxFinite, minFinite, maxExtreme, minExtreme, maxLarge, minLarge

class NumericalEpsilon x where Source #

Small numbers.

Minimal complete definition

epsilon

Methods

epsilon :: x Source #