R/entropyWeibull.R

##' The function returns the entropy of a weibull distribution.
##'
##' @param shape The shape parameter of the distribution, usually denoted k
##' @param scale The scale parameter of the distribution, usually
##' denoted lambda
##'
##' @return The entropy
##'
##' @export


entropyWeibull = function(shape, scale){
    -digamma(1) * (1 - 1/shape) + log(scale/shape) + 1
}
mkao006/sws_flag documentation built on May 23, 2019, 1:05 a.m.