ihs: Inverse hyperbolic sine

Description Usage Arguments Value Examples

View source: R/ihs.R

Description

Compute the inverse hyperbolic sine.

Usage

1
ihs(x)

Arguments

x

a numeric or complex vector.

Value

A numeric vector of transformed values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x <- 1:1e4

plot(ihs(x), pch = 20, cex = 0.2, col = "red")
points(log(x), pch = 20, cex = 0.1, col = "black")

x <- rnorm(1e5, mean = 0, sd = 100) ^ 2
plot(density(x))

plot(density(ihs(x)))
lines(density(log1p(x)), col = "blue")
lines(density(log(x)), col = "red")

coletl/easyr documentation built on June 10, 2020, 4:58 p.m.