ExpMarkovChain distribution
ExpMarkovChain(Double initialMean, Double firstValue, Integer n)
A chain of random variables. X[0] ~ Exp(mean=initialMean) or X[0] ~ LogNormal(meanlog, sdlog); X[i+1] ~ Exp(mean=X[i])
Parameters
- Double initialMean - (optional) This is the mean of the exponential from which the first value of the chain is drawn.
- Double firstValue - (optional) This is the value of the 1st element of the chain (X[0]).
- Integer n - the dimension of the return. Use either X[0] ~ Exp(mean=initialMean); or X[0] ~ LogNormal(meanlog, sdlog); Then X[i+1] ~ Exp(mean=X[i])
Return type
Examples
- skylineCoalescent.lphy
- https://linguaphylo.github.io/tutorials/skyline-plots/