Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Type (no constructors)
The core data structure which contains the current state as well as the parameters needed for operation.
External interface
mkDGIM :: (RealFrac a, Eq b) => a -> Integer -> (b -> Bool) -> DGIM b Source
Create a new DGIM structure given: - Required accuracy - Size of the stream to operate on - Predicate to determine if an element should be counted
querySince :: DGIM a -> Integer -> Integer Source
Query how many elements have been counted since a time-stamp