approximate-0.2.2: Approximate discrete values and numbers

Copyright(c) Edward Kmett 2013
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Data.Approximate.Type

Description

 

Synopsis

Documentation

data Approximate a Source

An approximate number, with a likely interval, an expected value and a lower bound on the log of probability that the answer falls in the interval.

NB: The probabilities associated with confidence are stored in the log domain.

Constructors

Approximate !(Log Double) a a a 

class HasApproximate c a | c -> a where Source

Minimal complete definition

approximate

Instances

zero :: (Num a, Eq a) => Prism' (Approximate a) () Source

one :: (Num a, Eq a) => Prism' (Approximate a) () Source