summary.CBrSPDEobj: Summarise CBrSPDE objects

View source: R/util.R

summary.CBrSPDEobjR Documentation

Summarise CBrSPDE objects

Description

Summary method for class "CBrSPDEobj"

Usage

## S3 method for class 'CBrSPDEobj'
summary(object, ...)

## S3 method for class 'summary.CBrSPDEobj'
print(x, ...)

## S3 method for class 'CBrSPDEobj'
print(x, ...)

Arguments

object

an object of class "CBrSPDEobj", usually, a result of a call to matern.operators().

...

further arguments passed to or from other methods.

x

an object of class "summary.CBrSPDEobj", usually, a result of a call to summary.CBrSPDEobj().

Examples

# Compute the covariance-based rational approximation of a
# Gaussian process with a Matern covariance function on R
kappa <- 10
sigma <- 1
nu <- 0.8
range <- sqrt(8*nu)/kappa

# create mass and stiffness matrices for a FEM discretization
x <- seq(from = 0, to = 1, length.out = 101)
fem <- rSPDE.fem1d(x)

# compute rational approximation of covariance function at 0.5
tau <- sqrt(gamma(nu) / (sigma^2 * kappa^(2 * nu) *
(4 * pi)^(1 / 2) * gamma(nu + 1 / 2)))
op_cov <- matern.operators(
  loc_mesh = x, nu = nu,
  range = range, sigma = sigma, d = 1, m = 2,
  parameterization = "matern"
)

op_cov

rSPDE documentation built on Nov. 6, 2023, 1:06 a.m.