covarianceOU_matrix: Covariance matrix

Description Usage Arguments Details Value Examples

View source: R/covariance_matrix.R

Description

Compute normalized covariance matrix

Usage

1
covarianceOU_matrix(tree, alphaOU)

Arguments

tree

a phylo object

alphaOU

hyperparameter

Details

The coefficient is proportional to (exp(- α * d_{i,j}) - exp(-2 * α * h)) / (2 * α)

Value

the covariance matrix of the OU process on the tree

Examples

1
2
tree <- ape::rtree(3)
covarianceOU_matrix(tree, alpha = 1)

abichat/zazou documentation built on Sept. 8, 2021, 6:53 a.m.