Description Usage Arguments Details Value References Examples
Sample Functional Data
1 2 3 4 5 6 7 8 9 10 11 12 |
mu |
function, scalar or a vector defining the mean function; default value: |
X |
centered stochastic process defined by a function of the form
|
n |
sample size; default value: |
m |
average sampling rate; default value: |
sig |
standard deviation of measurement errors; if |
snr |
signal to noise ratio to determine |
domain |
the domain; default value: |
delta |
the proportion of the domain to be observed for each trajectory; only required when |
grid |
vector of design points; only required when |
type |
the data type, either "regular" or "irregular"; default value: "irregular". |
This is a unified interface for reg.fd
and irreg.fd
; see the manual for these functions for details.
a list with the following members
t
design points sorted in increasing order for each trajectory; if type="irregular"
then a list; otherwise a vector.
y
observations for each trajectory; if type="irregular"
then a list; otherwise, a matrix.
and with attributes sig
, snr
, domain
, delta
, grid
and
the measurement-error-free counterpart of y
.
Lin2020synfd
1 2 3 4 5 | # irregularly observed Gaussian trajectories with constant mean function 1
Y <- rfd(mu=1, X=gaussian.process(), n=10, m=5)
# regularly observed trajectories with a K-L representation
Y <- rfd(X=kl.process(eigen.functions='FOURIER',distribution='LAPLACE'), type='regular')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.