maxDensity {charm}R Documentation

Find the mode of a density function

Description

Calculate a density function and find the max point

Usage

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

x <- rnorm(1000)
maxDensity(x)

[Package charm version 2.26.0 Index]