# dinvbat: The von-Mises based symmetric inverse Batschelet distribution In keesmulder/flexcircmix: Fit Mixtures of Flexible Circular Distributions

## Description

The inverse Batschelet distribution, with mean direction `mu`, concentration parameter `kp`, and shape (peakedness) parameter `lam`. This is the von Mises based version, without a skewness parameter.

## Usage

 ```1 2 3``` ```dinvbat(x, mu = 0, kp = 1, lam = 0, log = FALSE) rinvbat(n, mu = 0, kp = 1, lam = 0) ```

## Arguments

 `x` An angle in radians. `mu` A mean direction, in radians. `kp` Numeric, > 0,the concentration parameter. `lam` The shape parameter (peakedness), -1 < `lam` < 1. `log` Logical; whether to return the log of the probability or not. `n` The number of random variates to obtain.

## Value

Numeric. For `dinvbat`, the probability or log-probability of angle x given the parameters. For `rinvbat`, a vector of random variates from the inverse Batschelet distribution.

## Functions

• `rinvbat`: Random generation

## Examples

 ```1 2 3 4 5 6 7``` ```dinvbat(3) # Peaked distribution curve(dinvbat(x, lam = .8), -pi, pi) # Flat-topped distribution curve(dinvbat(x, lam = -.8), -pi, pi) ```

keesmulder/flexcircmix documentation built on May 29, 2019, 3:02 a.m.