Description Usage Arguments Value See Also Examples
This function centers the functional data by subtracting the pointwise mean from each of the functions in a functional data
by taking into account a potential change in the mean function. If there is a change in the mean function, the location of the change
is estimated using a fully functional estimator implemented in change_FF
, and the mean before and after the change is computed and subtracted from the respective
part of the functional data.
1 | center_data(fdobj, change = TRUE)
|
fdobj |
A functional data object |
change |
If |
Centered functional data sample (class fd
) containing:
coefs |
The coefficient array |
basis |
A basis object |
fdnames |
A list containing names for the arguments, function values and variables |
1 2 3 4 5 6 7 8 | # Generate FAR(1) process with change in the mean
f_AR = fun_AR(n=100, nbasis=21, kappa=0.9)
f_AR_change = insert_change(f_AR, k=20, change_location = 0.5, SNR=5)
fdata = f_AR_change$fundata
c_fdata = center_data(fdata)
par(mfrow=c(1,2))
plot(fdata, main="Functional Data")
plot(c_fdata, main="Centered Functional Data")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.