qdf_check: Validate quantile function by checking the corresponding...

check_rootsR Documentation

Validate quantile function by checking the corresponding quantile density function

Description

Validate quantile function by checking the corresponding quantile density function

Usage

check_roots(fun, ..., n = 13, interval = c(0, 1), parts = 10)

is_qdf_valid(fun, ..., n = 13L, parts = 10)

Arguments

fun

quantile density function (QDF) to check

...

other parameters passed to QDF function

n

integer polynomial degree to fit to the function. Default is 13

interval

interval to check the roots on

parts

integer number of parts to split the function range. Default is 10

Value

logical value indicating if the QDF is valid (i.e. returns only non-negative values)


dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.