mode: Empirical Mode

Description Usage Arguments See Also Examples

Description

Compute the mode of data using the empirical probability density function. Note that there are some problems using all=TRUE or warning=TRUE.

Usage

1
emode (f, include.boundaries=TRUE, all=FALSE, warning=FALSE)

Arguments

f

An epdfuv or epdfc object.

include.boundaries

Include the min and max data values.

all

If true, return all modal points, otherwise, return the max modal point only.

warning

If true generate a warning if there are no or multiple modal points.

See Also

epdfuv, epdfc

Examples

1
2
3
4
#compute the empirical mode
x = rnorm (30, 4) ^ 2
epdfuv.f = epdfuv (x)
emode (epdfuv.f)

empirical documentation built on Dec. 3, 2018, 1:04 a.m.