R/varDb.default.R

Defines functions varDb.default

Documented in varDb.default

varDb.default <- function(ao,beta,ntop,zeta=FALSE,...) {
    nbot <- 0+!zeta
    x    <- nbot:ntop
# Note that "ao" is really "alpha"!
    mu   <- expValDb(ao,beta,ntop,zeta)
    sum((x-mu)^2 * ddb(x,ao,beta,ntop,zeta))
}

Try the dbd package in your browser

Any scripts or data that you put into this service are public.

dbd documentation built on Aug. 19, 2021, 5:07 p.m.