R/dlog.r

Defines functions dlog

#######################################################
# Density functions of the sojourn time distributions #
#######################################################

# Density function of the logarithmic distribution
# ------------------------------------------------
dlog <- function(x, p){
  y <- - p^(x + 1) / ((x + 1) * log(1 - p))
  return(y)
  }
psobczyk/dhmm documentation built on May 24, 2017, 12:19 p.m.