Nothing
#' @title H transformation with gamma
#'
#' @description
#' Skewed Lambert W\eqn{\times} F RV transformation: \eqn{H_{\gamma}(u) = u
#' \exp(\gamma u)}.
#'
#' @param u a numeric vector of real values.
#' @param gamma skewness parameter; default \code{gamma = 0}, which implies
#' \code{H_gamma(u) = u}.
#' @seealso
#' \code{\link{xexp}}
#' @return
#' numeric; same dimension/size as \code{u}
#' @keywords math
#' @export
H_gamma <- function(u, gamma = 0) {
stopifnot(is.numeric(gamma),
is.numeric(u),
length(gamma) == 1)
if (gamma == 0) {
return(u)
} else {
# faster and more stable than calling 1/gamma * H(gamma * u)
return(u * exp(gamma * u))
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.