l2.norm: Calculates L2 norm among functions

Description Usage Arguments Details Value See Also

View source: R/l2.norm.R

Description

Calculates the integral of the squared differences between functions

Usage

1
  l2.norm(s, datafd, M)

Arguments

s

number of sites where the original dataset was measured

datafd

a functional data object representing a smoothed dataset. See DETAILS below.

M

symmetric matrix defining the roughness penalty for functions expressed in terms of a B-spline or Fourier basis. See DETAILS below.

Details

Roughness penalty matrix

This matrix is the output of one of the following functions: fourierpen y bsplinepen. The used function depends upon the smoothing type which is going to be applied.

When the roughness penalty matrix is being calculated, the following considerations are taked in count:

Value

The calculated matrix of squared differences between each observation for each measured site. This matrix has two properties:

See Also

okfd for doing Ordinary Kriging for function-value data, trace.variog for functional empirical trace variogram calculation, fit.tracevariog for fitting a variogram model in the functional scenario.


geofd documentation built on Jan. 29, 2020, 5:08 p.m.