Learn R Programming

hypervolume (version 2.0.12)

hypervolume_overlap_statistics: Overlap statistics for set operations (Sorensen, Jaccard, etc.)

Description

Calculates overlap metrics for two hypervolumes

Usage

hypervolume_overlap_statistics(hvlist)

Arguments

hvlist

A set of hypervolumes calculated from hypervolume_set

Value

A set of multiple metrics

jaccard

Jaccard similarity (volume of intersection of 1 and 2 divided by volume of union of 1 and 2)

sorensen

Sorensen similarity (twice the volume of intersection of 1 and 2 divided by volume of 1 plus volume of 2)

frac_unique_1

Unique fraction 1 (volume of unique component of 1 divided by volume of 1))

frac_unique_2

Unique fraction 2 (volume of unique component of 2 divided by volume of 2))

Examples

Run this code
# NOT RUN {
data(iris)
hv1 = hypervolume_gaussian(subset(iris, Species=="virginica")[,1:3])
hv2 = hypervolume_gaussian(subset(iris, Species=="versicolor")[,1:3])
hv_set <- hypervolume_set(hv1, hv2, check.memory=FALSE)

hypervolume_overlap_statistics(hv_set)
# }

Run the code above in your browser using DataLab