Description Usage Arguments Details Examples
Coerce a funsample
object to a fdsample
object.
1 | as.fdsample(x, ..., argrange = attr(x, "arglim"), nsteps = 200)
|
x |
the |
... |
parameters to be passed to the generator |
argrange |
numeric vector of length 2, range of the argument values. |
nsteps |
the number of intervals the argument range is divided into. |
Convert a sample of functions into an fdsample
by approximation
in the argument values. Argument values are obtained by dividing the given interval
argrange
into nsteps
parts.
1 2 3 4 | #rather artificial example: plot sin(x), cos(x), and their mean
myfuns <- funsample(list(sin = sin, cos = cos), arglim = c(0, 2*pi))
myfdsample <- as.fdsample(myfuns, xlab ="x", ylab = "sin(x) and cos(x)")
summaryplot(myfdsample)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.