Learn R Programming

changepoints (version 1.1.0)

Hausdorff.dist: Bidirectional Hausdorff distance.

Description

Compute the bidirectional Hausdorff distance between two sets.

Usage

Hausdorff.dist(vec1, vec2)

Value

An integer scalar of bidirectional Hausdorff distance.

Arguments

vec1

A integer vector forms a subset of 1, 2, ..., n.

vec2

A integer vector forms a subset of 1, 2, ..., n.

Author

Daren Wang

Examples

Run this code
vec1 = sample.int(1000, size = 50)
vec2 = sample.int(2000, size = 100)
Hausdorff.dist(vec1, vec2)

Run the code above in your browser using DataLab