Description Usage Arguments Details Value Author(s) Examples
An object of class funsample can be considered both as a multivariate
function of one argument and as a list of univariate functions. It is generated by function funsample.
is.funsample returns TRUE if x is an object
of class funsample
1 2 3 | funsample(funs, ..., arglim = c(0, 1))
is.funsample(x)
|
funs |
a single |
... |
predefined plot options, may be given as |
arglim |
numeric vector, an interval the functions in |
x |
an |
When called with an argument x, an object of class funsample applies
all functions contained in fun to x, using R-function sapply.
The argument limit arglim does not matter, i.e. also values x outside
the "allowed range" are processed.
The return value of a funsample is a matrix. It has colnames
if the list funs was named.
Currently, only functions of one variable are allowed, i.e., for any element
foo of funlist, foo(x) needs to return a numeric value as
long as x is within arglim. The intervall arglim is necessary
for plotting and for coercing into an fdsample object.
Predefining plot options may be particularly useful for plot annotation,
such as i.e. xlab, ylab and main. They may be also given
as a plutils::simplist. Options with same name are overriden
from left to right, i.e., the last one given counts.
funsample returns an object of class funsample, that is a function of one variable
adorned with attributes
funs | a list of functions
|
arglim | numeric, allowed range of function arguments |
groupsize | integer, length of funs
|
options | simplist of plot options, see {plot.funsample}
|
Ute Hahn ute@imf.au.dk
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.