sech: Hyperbolic secant distribution

View source: R/utils.R

psechR Documentation

Hyperbolic secant distribution

Description

Hyperbolic secant distribution with CDF F(x)=\frac{2}{\pi}\arctan(\exp(\frac{\pi}{2}\frac{(x-\mu)}{\sigma})) where \mu and \sigma are location and scale, respectively.

Usage

psech(x, location = 0, scale = 1)

dsech(x, location = 0, scale = 1)

qsech(p, location = 0, scale = 1)

fsech(p, location = 0, scale = 1)

dqsech(p, location = 0, scale = 1, log = FALSE)

rsech(n, location = 0, scale = 1)

sech(x)

Arguments

x

numeric vector

location

parameter of hyperbolic secant distribution

scale

parameter of yperbolic secant distribution

p

numeric vector of cumulative probabilities

log

logical; if TRUE, log density is returned. Default is FALSE

n

number of samples to draw

Value

cum

vector of hyperbolic secants

Examples

psech(1, 1, 1)

dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.