maxDensity: Find the mode of a density function

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate a density function and find the max point

Usage

1
maxDensity(x, n.pts = 2^14, minPoints=30)

Arguments

x

a data vector

n.pts

Number of points to use in density estimation

minPoints

Minimum number of data points to accept

Details

This function finds the maximum of a density function. It is identical to the (unexported) max.density function in affy except that it returns an NA if the number of data points provided is less than minPoints

Value

a numeric value

Author(s)

Martin Aryee <aryee@jhu.edu>

Examples

1
2
x <- rnorm(1000)
maxDensity(x)

charm documentation built on May 6, 2019, 2:29 a.m.