Description Usage Arguments Value See Also Examples
A data vector is logarithmically scaled and then normalized,
i.e., all of its components are logarithmically mapped into the interval
[0, 1]
.
1 |
data |
the data vector |
a TransformedData
instance corresponding to the
logarithmic mapping of data
into [0, 1]
, or NULL
if
such a mapping is not possible, e.g., if data
contained non-finite
values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | data <- c(-1, 0, 2, 6, 14, 30)
Transformation.log(data)
# An object of class "TransformedData"
# Slot "transformation":
# An object of class "Transformation"
# Slot "forward":
# function (x)
# log(x + 2) * 0.288539008177793
# <environment: 0x3b5cc18>
#
# Slot "backward":
# function (x)
# exp(x = x * 3.46573590279973) - 2
# <environment: 0x3c19460>
#
# Slot "complexity":
# [1] 5
#
# Slot "data":
# [1] 0.0 0.2 0.4 0.6 0.8 1.0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.