dnorMix {nor1mix}R Documentation

Normal Mixture Density

Description

Evaluate the density function of the normal mixture specified as norMix object.

Usage

dnorMix(obj, x = NULL, xlim = NULL, n = 511)

Arguments

obj an object of class norMix.
x numeric vector with abscissa values where to evaluate the density. Default is constructed from n (and xlim if specified).
xlim range of abscissa values, used if x == NULL. By default, xlim taken as mean plus/minus 3 standard deviations of the normal mixture.
n number of abscissa values to generate if x is not specified.

Value

A list with components

x the abscissa values.
y the density f(x) at x.

See Also

rnorMix for random number generation, and norMix for the construction and further methods, particularly plot.norMix which makes use dnorMix.

Examples

 ff <- dnorMix(MW.nm7)
 str(ff)
 plot(ff, type = "h") # rather use plot(ff, ...)

[Package nor1mix version 1.0-4 Index]