Learn R Programming

RegimeChange (version 0.1.1)

hausdorff_distance: Hausdorff Distance Between Changepoint Sets

Description

Computes the Hausdorff distance between detected and true changepoints. The Hausdorff distance is the maximum distance from a point in one set to the nearest point in the other set.

Usage

hausdorff_distance(detected, true_cp)

Value

Hausdorff distance (non-negative number)

Arguments

detected

Vector of detected changepoint locations

true_cp

Vector of true changepoint locations

Examples

Run this code
hausdorff_distance(c(48, 102), c(50, 100))

Run the code above in your browser using DataLab