FEM: Define a surface or spatial field by a Finite Element basis...

Description Usage Arguments Value Examples

View source: R/fdaPDE.objects.R

Description

This function defines a FEM object. This is not usualled called directly by users.

Usage

1
FEM(coeff,FEMbasis)

Arguments

coeff

A vector or a matrix containing the coefficients for the Finite Element basis expansion. The number of rows (or the vector's length) corresponds to the number of basis in FEMbasis. The number of columns corresponds to the number of functional replicates.

FEMbasis

A FEMbasis object defining the Finite Element basis, created by create.FEM.basis.

Value

An FEM object. This contains a list with components coeff and FEMbasis.

Examples

1
2
3
4
5
6
7
8
9
## Upload a triangular mesh and plot it
data("mesh.2D.rectangular")
plot(mesh.2D.rectangular)
## Create a linear Finite Element basis
FEMbasis = create.FEM.basis(mesh.2D.rectangular)
## Define a sinusoidal function as expansion of this basis and plot it
coeff <- sin(mesh.2D.rectangular$nodes[,1])*cos(mesh.2D.rectangular$nodes[,2])
FEM_object<- FEM(coeff, FEMbasis)
plot(FEM_object)

fdaPDE documentation built on May 29, 2017, 9:06 a.m.