Learn R Programming

qualV (version 0.2-5)

timetrans: Bijective Transformations of Time

Description

Various function models for isoton bijective transformation of a time interval to itself.

Usage

transBeta(x, p, interval = c(0, 1), inv = FALSE,
  pmin = -3, pmax = 3, p0 = c(0, 0))
transSimplex(x, p, interval = c(0, 1), inv = FALSE,
  pmin = -2, pmax = 2, p0 = c(0, 0, 0, 0, 0))
transBezier(x, p, interval = c(0, 1), inv = FALSE,
  pmin = 0, pmax = 1, p0 = c(0.25, 0.25, 0.75, 0.75))

Arguments

x
a vector of values to be transformed,
p
the vector of parameters for the transformation,
interval
a vector of length 2 giving the minimum and maximum value in the transformation interval.
inv
a boolean, if true the inverse transform is computed.
pmin
a number or a vector giving the minimal useful value for the parameters. This information is not used by the function itself, but rather provides a meta information about the function used in timeTrans
pmax
provides similar to pmin the upper useful bounds for the parameters.
p0
provides similar to pmin and pmax the parameterization for the identify transform.

Value

  • The value is a vector of the same length as x providing the transformed values.

Details

[object Object],[object Object],[object Object]

See Also

timeTransME

Examples

Run this code
t <- seq(0, 1, length.out = 101)
par(mfrow = c(3, 3))
plot(t, transBeta(t, c(0, 0)), type = "l")
plot(t, transBeta(t, c(0, 1)), type = "l")
plot(t, transBeta(t, c(-1,1)), type = "l")
plot(t, transSimplex(t, c(0)), type = "l")
plot(t, transSimplex(t, c(3, 2, 1)), type = "l")
plot(t, transSimplex(t, c(0, 2)), type = "l")
plot(t, transBezier(t, c(0, 1)), type = "l")
plot(t, transBezier(t, c(0, 1, 1, 0)), type = "l")
plot(t, transBezier(t, c(0.4, 0.6)), type = "l")

Run the code above in your browser using DataLab