tdigest-Chart: Chart generation from tdigest

[ bsd3, graphics, library, numeric ] [ Propose Tags ]

Chart generation from tdigest.

...

[Skip to Readme]
Versions [faq] 0, 0.2
Change log CHANGELOG.md
Dependencies base (>=4.7 && <4.13), base-compat (>=0.10.1 && <0.11), Chart (>=1.8.3 && <1.10), colour (>=2.3.3 && <2.4), lens (>=4.15.4 && <4.18), semigroupoids (>=5.2.2 && <5.4), semigroups (>=0.18.4 && <0.20), tdigest (==0.2.*) [details]
License BSD-3-Clause
Author Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Revised Revision 1 made by phadej at Tue Jun 25 18:56:42 UTC 2019
Category Numeric, Graphics
Home page https://github.com/futurice/haskell-tdigest#readme
Bug tracker https://github.com/futurice/haskell-tdigest/issues
Source repo head: git clone https://github.com/futurice/haskell-tdigest
Uploaded by phadej at Fri Apr 13 12:58:53 UTC 2018
Distributions NixOS:0.2
Downloads 866 total (54 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-04-13 [all 1 reports]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for tdigest-Chart-0.2

[back to package description]

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