pou_covariance: Phylogenetic Covariance

Description Usage Arguments Value Examples

Description

Derives the Covariance matrix for points in a univariate Phylogenetic Gaussian Process given the Ornsetin-Uhelenbeck process kernel.

Usage

1
pou_covariance(ln_hyperparameters, phylogenetic_tree)

Arguments

ln_hyperparameters

Vector of the natural logarithm of hyperparameters for an Ornstein-Uhlenbeck kernel in order log(phylogenetic noise, phylogenetic length-scale, non-phylogenetic noise)

phylogenetic_tree

Phylogenetic tree of relationships between observations

Value

Outputs the covariance between obsevations at the tips of the phylogenetic tree.

Examples

1
 K <- pou_cov(log(c(1,20,1)), phylogeny)

jpmeagher/sdsBAT documentation built on May 5, 2019, 3:50 a.m.