powered by
Function smooth.morph() maps a sorted set of variable values inside a closed interval into a set of equally-spaced probabilities in [0,1].
smooth.morph()
cumfd(xrnd, xrng, nbreaks=7, nfine=101)
A named list of length 2 containing:
a functional data object defining function $W(x)$ that that optimizes the fit to the data of the monotone function that it defines.
a vector of length nfine of an equally spaced mesh of values for the cumulative distribution function.
A vector of variable unsorted values.
A vector of length 2 containing the boundary values.
The number of knots to use to define object WfdPar in function smooth.morph().
WfdPar
The number of equally spaced values spanning xrng.
Only the values of x within the interior of xrng are used in order to avoid distortion due to boundary inflation or deflation.
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.
smooth.morph, landmarkreg, register.fd
smooth.morph
landmarkreg
register.fd
# see the use of smooth.morph in landmarkreg.R xrnd <- rbeta(50, 2, 5) xrng <- c(0,1) hist(xrnd) range(xrnd) cdfd <- cumfd(xrnd, xrng)
Run the code above in your browser using DataLab