pseudoLog: Pseudolog

View source: R/math.R

pseudoLogR Documentation

Pseudolog

Description

Internal soundgen function

Usage

pseudoLog(x, sigma, base)

Arguments

x

numeric vector to transform

sigma

scaling factor for the linear part

base

approximate logarithm base used

Details

From function pseudo_log_trans() in the "scales" package.

See Also

pseudoLog_undo

Examples

a = -30:30
plot(a, soundgen:::pseudoLog(a, sigma = 1, base = 2))
plot(a, soundgen:::pseudoLog(a, sigma = 5, base = 2))
plot(a, soundgen:::pseudoLog(a, sigma = .1, base = 2))

soundgen documentation built on Sept. 12, 2024, 6:29 a.m.