testFun: Test fun.density with lower and upper bounds

Description Usage Arguments Details Value Examples

View source: R/testFun.R

Description

Test fun.density with lower and upper bounds

Usage

1
testFun(fun.density, lower, upper, args = list())

Arguments

fun.density

A density function to be evaluated.

lower

Lower bounds of the parameter space with which fun.density can be evaluated.

upper

Upper bounds of the parameter space with which fun.density can be evaluated.

args

Additional arguments for fun.density.

Details

A function that is called whenever a nondefault density function is passed to DstarM. It does some rough error checking.

Value

Returns TRUE if no errors occurred, otherwise returns an error message

Examples

1
2
3
4
5
6
7
lower = c(.5, -6, .1, 0, 0)
upper = c(2, 6, .99, .99, 10)
args = list(t = seq(0, 5, .01), pars = lower, boundary = 'lower',
DstarM = TRUE)
testFun(fun.density = Voss.density, lower = lower, upper = upper,
args = args)
# TRUE

DstarM documentation built on Aug. 29, 2020, 1:06 a.m.