Description Usage Arguments Details Value See Also Examples
Evaluate the standard deviation of a set of functions in a functional data object.
| 1 2 3 4 | 
| fdobj | a functional data object. | 
The multiple aliases are provided for compatibility with previous versions and with other languages. The name for the standard deviation function in R is 'sd'. Matlab uses 'std'. S-Plus and Microsoft Excal use 'stdev'. 'stddev' was used in a previous version of the 'fda' package and is retained for compatibility.
a functional data object with a single replication
that contains the standard deviation of the one or several functions in
the object fdobj.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | liptime  <- seq(0,1,.02)
liprange <- c(0,1)
#  -------------  create the fd object -----------------
#       use 31 order 6 splines so we can look at acceleration
nbasis <- 51
norder <- 6
lipbasis <- create.bspline.basis(liprange, nbasis, norder)
lipbasis <- create.bspline.basis(liprange, nbasis, norder)
#  ------------  apply some light smoothing to this object  -------
Lfdobj   <- int2Lfd(4)
lambda   <- 1e-12
lipfdPar <- fdPar(lipbasis, Lfdobj, lambda)
lipfd <- smooth.basis(liptime, lip, lipfdPar)$fd
names(lipfd$fdnames) = c("Normalized time", "Replications", "mm")
lipstdfd <- sd.fd(lipfd)
plot(lipstdfd)
all.equal(lipstdfd, std.fd(lipfd))
all.equal(lipstdfd, stdev.fd(lipfd))
all.equal(lipstdfd, stddev.fd(lipfd))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.