Closed maxbiostat closed 5 years ago
In src/dr/math/distributions/NormalDistribution.java we have:
src/dr/math/distributions/NormalDistribution.java
public static double gradLogPdf(double x, double m, double sd) { return (m - x) / (sd * sd); }
Is this not missing a minus sign? hessianLogPdfhas the correct sign.
hessianLogPdf
Clarified by @xji3
In
src/dr/math/distributions/NormalDistribution.java
we have:Is this not missing a minus sign?
hessianLogPdf
has the correct sign.