distOverlap: Quantify distribution overlap

Description Usage Arguments Value Examples

View source: R/changepoint.R

Description

Measures the amount of overlap between two sampled numerical distributions x1 and x2. The return value states the degree of overlap. If 1 then 100 percent is overlapped meanwhile a 0 indicates no overlap.

Usage

1
distOverlap(x1, x2, breaks = NULL)

Arguments

x1

samples from distribution 1

x2

samples from distribution 2

breaks

manually specify the breaks to use which if set to NULL (the default) will be estimated by histogram

Value

the overlap in percent represented as a number between 0 and 1

Examples

1
distOverlap(rnorm(10, 10, 5), rnorm(10, 5, 5))

DoktorMike/bayesian-model-zoo documentation built on May 23, 2019, 11:32 p.m.