intersect: Intersect Histograms

Description Usage Arguments Author(s) References See Also Examples

Description

Takes two histograms with identical bucket boundaries and returns a histogram of the intersection of the two. Each bucket of the returned histogram contains the minimum of the equivalent buckets in the two provided histograms.

Usage

1

Arguments

h1,h2

"histogram" objects (created by hist) representing a dataset summarized by binning.

Author(s)

Murray Stokely mstokely@google.com

References

Swain, Michael J., and Dana H. Ballard. "Color indexing." International journal of computer vision 7.1 (1991): 11-32.

See Also

histogramtools-package, hist.

Examples

1
2
3
h1 <- hist(runif(100), plot=FALSE)
h2 <- hist(runif(100), plot=FALSE)
plot(IntersectHistograms(h1, h2))

Example output



HistogramTools documentation built on May 2, 2019, 6:15 p.m.