getPointProportion: Obtain proportion of true observations in excursion set

Description Usage Arguments Value Author(s)

View source: R/getPointProportion.R

Description

Computes the proportion of observations in the excursion set from true function evaluations, binned by the grid determined with xBins, yBins.

Usage

1
getPointProportion(pp, xBins, yBins, whichAbove, plt = FALSE)

Arguments

pp

a matrix of dimension nPts x 2 with the true points locations in 2 dimensions.

xBins

numerical vector with the ordered breaks of the grid along the x axis

yBins

numerical vector with the ordered breaks of the grid along the y axis

whichAbove

boolean vector of dimension nPts, selects the points above

plt

if not TRUE plots the grid, the points and the counts for each cell.

Value

a list containing above, the counts of points in excursion, full the counts per cell of all points, freq, the relative frequence.

Author(s)

Dario Azzimonti


profExtrema documentation built on March 22, 2020, 1:07 a.m.