Transformation.normalizeInterval: Create a Normalization Transformation

Description Usage Arguments Value See Also Examples

View source: R/intervals.R

Description

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.

Usage

1
Transformation.normalizeInterval(domainMin, domainMax)

Arguments

domainMin

the minimum of the original interval

domainMax

the maximum of the original interval

Value

a bijection between [domainMin, domainMax] and [0,1]

See Also

Transformation.mapIntervals

Examples

 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>

thomasWeise/dataTransformeR documentation built on May 14, 2019, 8:03 a.m.