block_list: List of blocks

Description Usage Arguments Value Examples

View source: R/AllConstructor.R

Description

This function initialises an object of class block_list which is simply a list in which each object is restricted to be of class block. A block is also either of class Obs or class process.

Usage

1

Arguments

l

a list of objects of class block.

Value

Object of class block_list (which inherits from class list)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Not run: 
require(Matrix)
data(icesat)
data(surf_fe)

## First create observation object
icesat_obs <- Obs(df=icesat,
                 abs_lim = 5,
                 avr_method = "median",
                 box_size=100,
                 name="icesat")

## Now create GMRF defined over some FE basis
Mesh <- initFEbasis(p=surf_fe$p,
                    t=surf_fe$t,
                    M=surf_fe$M,
                    K=surf_fe$K)

mu <- matrix(0,nrow(Mesh),1)
Q <- sparseMatrix(i=1:nrow(surf_fe$p), j = 1:nrow(surf_fe$p), x = 1)

my_GMRF <- GMRF(mu = mu, Q = Q,name="SURF",t_axis = 0:6)
SURF <-GMRF_basis(G = my_GMRF, Basis = Mesh)

v <- block_list(list(O = icesat_obs, G = SURF))

## End(Not run)

shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.