NormalGridFcn: Compute the values of n normal PDFs (or their derivatives at...

View source: R/helper_functions.R

NormalGridFcnR Documentation

Compute the values of n normal PDFs (or their derivatives at m grid points).

Description

Grid points are specified in g. Returns an m-by-n matrix. The (i,j)th element of the matrix is the rth derivative of N(mu(j),sd(j)) at g(i).

Usage

NormalGridFcn(g, r, mu, sd)

Arguments

g

Locations at which to evaluate the normal densities.

r

Derivative degree of the densities to evaluate (0, 1, 2, or 3).

mu

Means/locations for the normal densities.

sd

Standard deviations of the normal densities.

Value

An m-by-n matrix as described above.


scdensity documentation built on Sept. 12, 2024, 7:35 a.m.