int_mat: Numerical Integration Matrix

Description Usage Arguments Value See Also

View source: R/int_mat.R

Description

Create a matrix for numerical integration.

Usage

1
2
3
4
5
6
7
int_mat(
  distr = dnorm,
  args = list(mean = 0, sd = 1),
  lb = -4,
  ub = 4,
  npts = 10000
)

Arguments

distr

A density function with two user-specified parameters. Defaults to the normal distribution (dnorm), but any density function is permitted.

args

Named list of arguments to distr.

lb

Lower bound of range over which to numerically integrate.

ub

Upper bound of range over which to numerically integrate.

npts

Number of integration points.

Value

Matrix of two columns. Column 1 is a sequence of x-coordinates, and column 2 is a sequence of y-coordinates from a normalized distribution.

See Also

rimse th_est_ml th_est_eap sl_link hb_link

@importFrom stats dnorm


flexmet documentation built on July 14, 2021, 1:06 a.m.