Skip to content

Commit

Permalink
A few trivial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhall272 committed Jul 17, 2023
1 parent 39bafa4 commit e436a42
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/dr/evomodel/siteratemodel/GammaSiteRateDelegate.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ public static void setQuadratureRates(double[] categoryRates, double[] categoryP
categoryProportions[i + offset] = coefficients[i]/GammaFunction.gamma(alpha);
}

double nothing;

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public Object parseXMLObject(XMLObject xo) throws XMLParseException {
DiscretizedSiteRateModel siteRateModel = new DiscretizedSiteRateModel(SiteModel.SITE_MODEL, muParam, muWeight, delegate);

siteRateModel.setSubstitutionModel(substitutionModel);
siteRateModel.addModel(substitutionModel);

return siteRateModel;
}
Expand Down
2 changes: 1 addition & 1 deletion src/dr/math/GeneralisedGaussLaguerreQuadrature.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void setupArrays(){
throw new RuntimeException("Too many iterations");
}
abscissae[i] = z;
coefficients[i] = -Math.exp(GammaFunction.lnGamma(alpha+noPoints) - GammaFunction.lnGamma((double)noPoints))/
coefficients[i] = -Math.exp(GammaFunction.lnGamma(alpha+noPoints) - GammaFunction.lnGamma(noPoints))/
(pp*noPoints*p2);

}
Expand Down

0 comments on commit e436a42

Please sign in to comment.