rknn (version 1.0)

eta: Coverage Probability

Description

Calculate the coverage probability

Usage

eta(p, m, r, method = c("binomial", "poisson", "exact"))

Arguments

p
Total number of available features.
m
Number of features to be drawn by each KNN.
r
Number of KNN to be generated.
method
Either binomial approximation, poisson approximaton or exact method.

Value

  • The coverage probability is returned.

Details

``exact'' method needs gmp pakage and is slow for large p.

See Also

r

Examples

Run this code
eta(1000, 32, 100)

Run the code above in your browser using DataCamp Workspace