tdigest-Chart

Chart generation from tdigest https://github.com/futurice/haskell-tdigest#readme

Version on this page:0
LTS Haskell 9.18:0
Stackage Nightly 2017-07-25:0
Latest on Hackage:0
BSD3 licensed and maintained by Oleg Grenrus

Module documentation for 0

tdigest-Chart

A Chart plotting of tdigest

Examples

These are outputs of the test-suite

inkscape --export-png=example1.png --export-dpi=80 --export-background-opacity=0 --without-gui example1.svg
inkscape --export-png=example2.png --export-dpi=80 --export-background-opacity=0 --without-gui example2.svg

Standard normal distribution

Chart.layout_title Chart..= "Normal distribution"
Chart.plot $ do
    p <- Chart.tdigestPlot "tdigest" td
    return $ Chart.tdigestToPlot $ p
        & Chart.plot_tdigest_normalize .~ True
        & Chart.plot_tdigest_deviations .~ Just 3

Example 1

Chi-squared distribution, k = 5

Chart.layout_title Chart..= "Chi-squared distribution, k = 5"
Chart.plot $ do
    p <- Chart.tdigestPlot "tdigest" td
    return $ Chart.tdigestToPlot $ p
        & Chart.plot_tdigest_normalize .~ True
        & Chart.plot_tdigest_quantiles .~ [0.5, 0.9, 0.999]

Example 2

Changes

0

  • initial version
  • compatible with tdigest-0.1
Used by 1 package:
comments powered byDisqus