Description Usage Arguments Value See Also Examples
Create a bijective mapping between the real interval
[domainMin, domainMax]
and [0, 1]
. The returned mapping will
map domainMin
to 0
and domainMax
to 1
. Notice
that domainMin>domainMax
is permissible, in which case smaller input
values map to larger output values.
1 | Transformation.normalizeInterval(domainMin, domainMax)
|
domainMin |
the minimum of the original interval |
domainMax |
the maximum of the original interval |
a bijection between [domainMin, domainMax]
and [0,1]
1 2 3 4 5 6 7 8 9 10 11 | Transformation.normalizeInterval(1, 3)
# An object of class "Transformation"
# Slot "forward":
# function (x)
# ((x - 1)/2)
# <environment: 0x3bf9960>
#
# Slot "backward":
# function (x)
# (x * 2) + 1
# <environment: 0x3bf9960>
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.