Popularity
3.0
Declining
Activity
0.0
Stable
3
1
2

Monthly Downloads: 5
Programming language: Haskell
License: GNU General Public License v3.0 only
Tags: Math     Statistics    

hdr-histogram alternatives and similar packages

Based on the "Math" category.
Alternatively, view hdr-histogram alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of hdr-histogram or a related project?

Add another 'Math' Package

README

hdr-histogram

Build Status Code Climate Hackage Hackage-Deps

Overview

A Haskell implementation of HdrHistogram. It allows storing counts of observed values within a range, while maintaining precision to a configurable number of significant digits.

Example

{-# LANGUAGE DataKinds           #-}
{-# LANGUAGE ScopedTypeVariables #-}

import           Control.Monad             (forM_)
import qualified Data.HdrHistogram         as H
import qualified Data.HdrHistogram.Mutable as MH

vals :: [Int]
vals = undefined

-- Measure from 1ms to 1 hour, with 3 points of precision
type Config = H.Config 1 3600000 3

main :: IO ()
main = do
  h <- MH.new
  forM_ vals (MH.record h)
  (frozen :: H.Histogram Config Int Int) <- MH.freeze h
  print $ H.percentile frozen 50