rSPDE.A1d {rSPDE} | R Documentation |
Observation matrix for finite element discretization on R
Description
A finite element discretization on R can be written as
where
is a piecewise linear
"hat function" centered at location
. This function computes an
matrix
that links the basis function in the expansion to specified locations
in the domain through
.
Usage
rSPDE.A1d(x, loc)
Arguments
x |
The locations of the nodes in the FEM discretization. |
loc |
The locations |
Value
The sparse matrix A
.
Author(s)
David Bolin davidbolin@gmail.com
See Also
Examples
# create mass and stiffness matrices for a FEM discretization on [0,1]
x <- seq(from = 0, to = 1, length.out = 101)
fem <- rSPDE.fem1d(x)
# create the observation matrix for some locations in the domain
obs.loc <- runif(n = 10, min = 0, max = 1)
A <- rSPDE.A1d(x, obs.loc)
[Package rSPDE version 2.3.3 Index]