bm_loglik_trio: Fast likelihood of a 2-dimensional point with two daughters...

Description Usage Arguments Value Author(s) References See Also

Description

For internal use only.

Usage

1
bm_loglik_trio(a, v, d1, d2, s, t1, t2, sigma2x, sigma2y, areas, daughter_ids, nGQ)

Arguments

a

vector with ancestor value (x & y).

v

vector with current point being evaluated (x & y).

d1

vector with first daughter value (x & y).

d2

vector with second daughter value (x & y).

s

time separating v from ancestor.

t1

time separating v from first daughter.

t2

time separating v from second daughter.

sigma2x

current value for sigma2x.

sigma2y

current value for sigma2y.

areas

polygonal areas, to save time and not recalculate.

daughter_ids

the ids of the daughters of the node.

nGQ

degree of the one-dimensional Gauss-Legendre quadrature rule (default = 20) as given by polyCub.SV in package polyCub.

Value

loglikelihood of v according to Brownian motion.

Author(s)

Forrest Crawford, Ignacio Quintero

References

Quintero, I., Keil, P., Jetz, W., Crawford, F. W. 2015 Historical Biogeography Using Species Geographical Ranges. Systematic Biology. doi: 10.1093/sysbio/syv057

See Also

rase


rase documentation built on May 2, 2019, 12:46 p.m.