Skip to content

Commit

Permalink
prior problem in birthDeathOnRootAgeAndTaxa.lphy #492
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Jun 11, 2024
1 parent 07b829b commit d767faf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/birth-death/birthDeathOnRootAgeAndTaxa.lphy
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ model{
// Conditioned on root age and on number of taxa
ψ ~ BirthDeath(lambda=λ, mu=death_rate, rootAge=root_time, taxa=taxa);

ucln_mean ~ Exp(mean=2.0);
ucln_sigma ~ Exp(mean=3.0);
ucln_mean ~ Normal(mean=-4.5, sd=0.5);
ucln_sigma ~ Exp(mean=0.5);
branch_rates ~ LogNormal(meanlog=ucln_mean, sdlog=ucln_sigma, replicates=2*n - 2);

D ~ PhyloCTMC(tree=ψ, Q=Q, branchRates=branch_rates, L=L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ public abstract class AbstractPhyloCTMC implements GenerativeDistribution<Alignm
protected Value<Double[]> rootFreqs;
protected SortedMap<String, Integer> idMap = new TreeMap<>();
protected double[][] transProb;
/**
* <code>e^{Qt} = Ee^{At}E^-1</code>, where A is a diagonal matrix of eigenvalues (Eval),
* E is the matrix of right eigenvectors (Evec), and E^-1 is the matrix of left eigenvectors (Ievc).
*/
private EigenDecomposition decomposition;
private double[][] Ievc;
private double[][] Evec;
private double[][] iexp;
private double[] Eval;
private double[][] Ievc; // inverse Eigen vectors
private double[][] Evec; // Eigen vectors
private double[][] iexp; // intermediate matrix
private double[] Eval; // Eigenvalues


public AbstractPhyloCTMC(Value<TimeTree> tree, Value<Number> clockRate, Value<Double[]> freq,
Expand Down

0 comments on commit d767faf

Please sign in to comment.