Learn R Programming

hypervolume (version 1.3.0)

hypervolume_prune: Removes small hypervolumes from a HypervolumeList

Description

Identifies hypervolumes characterized either by a number of uniformly random points or a volume below a user-specified threshold and removes them from a HypervolumeList.

This function is useful for removing small features that can occur stochastically during segmentation after set operations or hole detection.

Usage

hypervolume_prune(hvlist, minnp = NULL, minvol = NULL)

Arguments

hvlist
A HypervolumeList object.
minnp
The threshold minimum number of points in each input hypervolume.
minvol
The threshold minimum volume in each input hypervolume

Value

  • A HypervolumeList pruned to only those hypervolumes of sizes above the desired threshold.

Details

Either minnp or minvol (but not both) must be specified.

See Also

hypervolume_holes, hypervolume_segment

Examples

Run this code
data(iris)
hv1 <- hypervolume(iris[,1:3],bandwidth=0.1)
hv1_segmented <- hypervolume_segment(hv1, npmax=1000,distancefactor=5)
hv1_segmented_pruned <- hypervolume_prune(hv1_segmented, minnp=100)

plot(hv1_segmented_pruned)

Run the code above in your browser using DataLab