log1ps10: Signed 'log1p' With Base 10

View source: R/log1ps.R

log1ps10R Documentation

Signed log1p With Base 10

Description

Signed log1p with base 10.

Usage

log1ps10(x)

Arguments

x

Numerical vector.

Details

Compute log1ps10(x) = sign(x) * log1p(abs(x)) / log(10). This function is the inverse of expm1s10.

Value

Numeric vector.

See Also

log1ps expm1s10

Examples

x <- c(-100, -10, -1, -0.1, 0, 0.1, 1, 10, 100)
y <- log1ps10(x)
# this test if the inverse is ok
stopifnot(isTRUE(all.equal(x, eflTools::expm1s10(y))))

FrankLef/eflTools documentation built on May 4, 2024, 10:04 p.m.