eta: Coverage Probability

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Calculate the coverage probability

Usage

1
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.

Details

“exact” method needs gmp pakage and is slow for large p.

Value

The coverage probability is returned.

Author(s)

Shengqiao Li<lishengqiao@yahoo.com>

See Also

r

Examples

1
 eta(1000, 32, 100)

Example output

Loading required package: gmp

Attaching package: 'gmp'

The following objects are masked from 'package:base':

    %*%, apply, crossprod, matrix, tcrossprod

[1] 7.345061e-18

rknn documentation built on May 2, 2019, 12:35 p.m.

Related to eta in rknn...