Package: HistogramTools 0.4.1

HistogramTools: Utility Functions for R Histograms

Provides a number of utility functions useful for manipulating large histograms. This includes methods to trim, subset, merge buckets, merge histograms, convert to CDF, and calculate information loss due to binning. It also provides a protocol buffer representation of R's native histogram class to allow histograms over large data sets to be computed and combined in distributed analytical pipelines. Implements bin-by-bin histogram distance measures described in Rubner, Tomasi and Guibas (2000) <doi:10.1023/A:1026543900054>, Swain and Ballard (1991) <doi:10.1007/BF00130487>, and Puzicha, Hofmann and Buhmann (1997) <doi:10.1109/CVPR.1997.609331>, and average shifted histograms as in Scott (2015, ISBN:9781118575536).

Authors:Murray Stokely [aut, cre, cph], Google, Inc. [cph], Tim Hesterberg [ctb]

HistogramTools_0.4.1.tar.gz
HistogramTools_0.4.1.zip(r-4.7)HistogramTools_0.4.1.zip(r-4.6)HistogramTools_0.4.1.zip(r-4.5)
HistogramTools_0.4.1.tgz(r-4.6-any)HistogramTools_0.4.1.tgz(r-4.5-any)
HistogramTools_0.4.1.tar.gz(r-4.7-any)HistogramTools_0.4.1.tar.gz(r-4.6-any)
HistogramTools_0.4.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
HistogramTools/json (API)

# Install 'HistogramTools' in R:
install.packages('HistogramTools', repos = c('https://murraystokely.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/murraystokely/histogramtools/issues

On CRAN:

Conda:

5.15 score 70 scripts 605 downloads 1 mentions 28 exports 56 dependencies

Last updated from:98a1f51dbe. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK285
source / vignettesOK223
linux-release-x86_64OK143
macos-release-arm64OK309
macos-oldrel-arm64OK162
windows-develOK107
windows-releaseOK85
windows-oldrelOK83
wasm-releaseOK132

Exports:AddHistogramsApproxMeanApproxQuantileas.histogramas.histogram.Messageas.Messageas.Message.histogramCountEMDCCHistToASHHistToEcdfintersect.distIntersectHistogramsjeffrey.divergencekl.divergenceKSDCCMergeBucketsminkowski.distPlotEMDCCPlotKSDCCPlotLog2ByteEcdfPlotLogTimeDurationEcdfPlotRelativeFrequencyPreBinnedHistogramReadHistogramsFromDtraceOutputFileScaleHistogramSubsetHistogramTrimHistogram

Dependencies:ashbackportsbase64encbslibcachemcheckmatecliclustercolorspacecpp11data.tabledigestevaluatefarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglifecyclemagrittrmemoisemimennetR6rappdirsRColorBrewerrlangrmarkdownrpartrstudioapiS7sassscalesstringistringrtinytexvctrsviridisLitewithrxfunyaml

HistogramTools-Intro

Last update: 2026-05-06
Started: 2013-07-12

HistogramTools-QuickRef

Last update: 2026-05-06
Started: 2013-09-13

Readme and manuals

Help Manual

Help pageTopics
HistogramTools packageHistogramTools-package histogram HistogramTools
Aggregate histograms that have identical breaks..NewHistogramName AddHistograms
Convert histogram protocol buffers to histogram objectsas.histogram as.histogram.default as.histogram.Message
Convert R histograms to Protocol Buffer representationas.Message as.Message.histogram
Average Shifted Histograms From a Histogram.HistToASH
Read Histograms from text DTrace output file.dtrace ReadHistogramsFromDtraceOutputFile
Histogram Distance Measuresintersect.dist jeffrey.divergence kl.divergence minkowski.dist
Empirical Cumulative Distribution Function From a Histogram.HistToEcdf
Information Loss Metrics for HistogramsEMDCC KSDCC PlotEMDCC PlotKSDCC
Intersect HistogramsIntersectHistograms
Merge adjacent buckets in a histogram to create a new histogram.MergeBuckets
Plot Binned Histogram and ECDF Data.PlotLog2ByteEcdf PlotLogTimeDurationEcdf
Plot Relative Frequency HistogramPlotRelativeFrequency
PreBinnedHistogramPreBinnedHistogram
Histogram Approximate Quantiles.ApproxMean ApproxQuantile Count
Scale Histogram CountsScaleHistogram
Subset a histogram by removing some of the buckets.SubsetHistogram
Trim the tails of a sparse histogram.TrimHistogram trimhistogram trimsparse