View source: R/cTransformations.R
clog | R Documentation |
Function clog()
will take logarithm of real and imaginary parts separately
and then merge the resulting variable in the complex one. The function
cexp()
does the opposite transform, taking exponent of parts and then
merging them.
clog(y, base = exp(1))
cexp(y, base = exp(1))
y |
vector of a complex variable in the original scale. |
base |
a positive or complex number: the base with respect to which logarithms/powers are computed. Defaults to exp(1). |
A vector of the same size as y
, containing transformed complex variable.
Ivan Svetunkov, ivan@svetunkov.com
Svetunkov, S. & Svetunkov I. (2022) Complex Autoregressions. In Press.
cscale
# Generate random complex variables
y <- complex(real=rnorm(100,100,10), imaginary=rnorm(100,100,10))
yLog <- clog(y)
cexp(yLog)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.