lsdGetContour {DepthProc}R Documentation

Get location-scale contour from LSDepthContour object.

Description

Get numeric values of the location-scale depth contour from existing object of LSDepthContour class.

Usage

lsdGetContour(x, cont)

## S4 method for signature 'LSDepthContour'
lsdGetContour(x, cont)

Arguments

x

object of class LSDepthContour

cont

single numeric — depth of contour to return

Details

Calculations are based on lsdepth algorithm written by Ch. Muller.

Examples

dcont <- lsdSampleDepthContours(rf(200, 4, 7), depth = c(0.1, 0.2))

# get contour that is present in dcont object
lsdGetContour(dcont, 0.1)

# get contour that is not present in dcont
# it will be automatically calculated
lsdGetContour(dcont, 0.3)

[Package DepthProc version 2.1.3 Index]