center.fsd.fd: Compute the centered version of spatial functional data

Description Usage Arguments Value See Also Examples

Description

This function is used to center spatial functional data.

Usage

1
center.fsd.fd(X, margins = NULL, na.rm = FALSE)

Arguments

X

the functional spatial data.

margins

the margins for which the centering should be done separately in every entry, in order to remove a trend.

na.rm

whether or not missing values should be ignored.

Value

the centered data.

See Also

mean.fsd.fd

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data("temp")

# blindly center the data
T.centered = center.fsd.fd(temp)
# there is a clear structure in the empirical means
plot(mean(T.centered, margins = 1:2))

# take the latitude and the longitude as baseline
T.centered2 = center.fsd.fd(temp, margins = 1:2)
# random noise in the empirical means
plot(mean(T.centered2, margins = 1:2))
# this is the baseline
plot(mean(temp, margins = 1:2))

kuenzer/fsd documentation built on July 21, 2020, 1:57 p.m.