pseudoLog: The Signed Pseudo Logarithm

View source: R/pseudoLog.R

pseudoLogR Documentation

The Signed Pseudo Logarithm

Description

The domain of logarithm function is >0. However, sometimes it is required to transform numbers using sort of "signed logarithm". The pseudoLog function can achieve this goal.

Usage

pseudoLog(x, base = 10, sigma = 1, inverse = FALSE)

Arguments

x

numeric value or vector that need to transform.

base

base of logarithm.

inverse

whether the inverse function of pseudoLog is applied.

Scaling

factor for the linear part of pseudo-log transformation.

Examples

## Not run: 
x = c(-10^(4:1), 0, 10^(1:4))
y = pseudoLog(x)
print(y)
z = pseudoLog(x, inverse = TRUE)

## End(Not run)


paodan/funcTools documentation built on April 1, 2024, 12:01 a.m.