maxDensity {charm} | R Documentation |
Calculate a density function and find the max point
maxDensity(x, n.pts = 2^14, minPoints=30)
x |
a data vector |
n.pts |
Number of points to use in density estimation |
minPoints |
Minimum number of data points to accept |
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
a numeric value
Martin Aryee <aryee@jhu.edu>
x <- rnorm(1000) maxDensity(x)