bv_matern: Ngme bivariate model with Matern sub_models

View source: R/complex-models.R

bv_maternR Documentation

Ngme bivariate model with Matern sub_models

Description

Giving 2 sub_models, build a correlated bivaraite operator based on K = D(theta, eta)

D(\theta, \rho) = \begin{pmatrix} \cos(\theta) + \rho \sin(\theta) & -\sin(\theta) \sqrt{1+\rho^2} \\ \sin(\theta) - \rho \cos(\theta) & \cos(\theta) \sqrt{1+\rho^2} \end{pmatrix}

Usage

bv_matern(
  mesh,
  sub_models,
  theta = 0,
  rho = 0,
  sd1 = 1,
  sd2 = 1,
  group = NULL,
  share_param = FALSE,
  fix_theta = FALSE,
  ...
)

Arguments

mesh

the mesh where model is defined

sub_models

a list of sub_models (should be two matern models)

theta

the parameter related to rotation

rho

the parameter related to correlation

sd1

scaling parameter for the first sub-model

sd2

scaling parameter for the second sub-model

group

group vector, can be inherited from ngme() function

share_param

TRUE if share the same parameter for 2 sub_models (of same type)

fix_theta

TRUE if the rotation parameter is fixed

...

ignore

Value

a list of specification of model


ngme2 documentation built on May 20, 2026, 9:10 a.m.