R/dcircexp.R

Defines functions dcircexp

Documented in dcircexp

dcircexp <- function(x, lambda, rads = FALSE, logden = FALSE) {
  if ( !rads )  x <- x * pi/180
  den <- log(lambda) - lambda * x - log( 1 - exp(-2 * pi * lambda) )
  if ( !logden )  den <- exp(den)
  den
}

Try the Directional package in your browser

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

Directional documentation built on June 22, 2024, 7:20 p.m.