R/ARS.R

Defines functions fInArs fPrimaInArs

#################################################################################################
###                                  ARS.R                                                    ###
#################################################################################################

fInArs <- function(shape, xVec, scale) {
	n <- length(xVec)
	- n * log(gamma(shape)) - n * shape * log(scale) + (shape - 1) * sum(log(xVec))
}

fPrimaInArs <- function(shape, xVec, scale) {
	n <- length(xVec)
	- n * digamma(shape) - n * log(scale) + sum(log(xVec))
}

Try the optimalThreshold package in your browser

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

optimalThreshold documentation built on Jan. 13, 2020, 5:06 p.m.