R/pbdam.R

Defines functions pbdam

#' Transformation of the PBDV function for use in the GIN distribution
#'
#' @param a degrees-of-freedom parameter.
#' @param z argument for the parabolyc cylinder function.
#' @param method string with the method used to compute the parabolic cylinder function.
#' method = "Fortran" uses the compiled Fortran version, while method = "R" uses an R translation.
#' @details
#' This function uses the PBDV Fortran subroutine provided in the
#' SPECFUN Fortran library by Shanjie Zhang and Jianming Jin in
#' Computation of Special Functions, Wiley, 1996, ISBN: 0-471-11963-6, LC: QA351.C45.
#'
#' @return Modified parabolyc cylinder function.
#'
#' @noRd
pbdam <- function(a, z, method = "Fortran") {
  am <- -a + 1
  return(pbdv_r(am, z, method))
}

Try the ginormal package in your browser

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

ginormal documentation built on Aug. 28, 2023, 1:07 a.m.