m11: Transform values from any interval to [-1, 1] and back

m11_to_abR Documentation

Transform values from any interval to [-1, 1] and back

Description

Transform values from any interval to [-1, 1] and back

Usage

m11_to_ab(z, from = 0, to = 1)

ab_to_m11(x, from = 0, to = 1)

Arguments

from, to

the interval(s) to which x values belong. Defaults are from=0,to=1

x, z

vector of values on regular and [-1,1] scale, respectively

Value

returns values on the other scale

Examples

m11_to_ab(c(-0.5, 0, 0.5))
ab_to_m11(c(0.25, 0.5, 0.75))

dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.