Defines a multidimensional functional data set.
Constructor function of the npf.data
-class
.
npf.data(y, min, max, lag, ylabel, ynames, dimnames)
# S3 method for npf.data
coords(x, ...)
numeric matrix or array; the last dimension corresponds to curves and the first ones to discretization points.
vector; minimum values of the discretization points (coordinates).
vector; maximum values of the discretization points (optional).
vector; lag in each dimension (optional).
character; name used to label the data.
character vector; names used to label the curves.
character vector; names used to label the dimensions.
funcional data (npf.data-class object).
further arguments passed to or from other methods.
Returns an object of class
npf.data
(extending npsp::data.grid
), a list with
the arguments y
, ylabel
and ynames
as components, and two additional
components:
ny
number of curves (sample size).
grid
a npsp::grid.par-class object that defines the
discretization points.
Only one of the arguments max
or lag
must be specified.
fd.ozone <- npf.data(ozone, dimnames = "day")
plot(fd.ozone)