Internal functions use to calculate the likelihood of the FPK model, used in ML and MCMC estimation.
LogLik_bounds(tree_formatted, dCoeff, dMat, bounds)
LogLik_bounds_est_root(tree, trait, dCoeff, V, x0_pos, bounds)
A formatted tree as returned by FormatTree_bounds.
The diffusion coefficient.
The discretized diffusion matrix.
A numeric vector giving the value of the evolutionary potential in each point of the trait grid.
A vector giving the bounds of the trait interval.
The value of the trait at the root of the tree.
A phylogenetic tree in phylo format.
A trait vector for tip taxa.