Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Nov 4, 2023
1 parent 31a43e3 commit 056a0dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dr/inference/distribution/RandomFieldGradient.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public double[] getGradientLogDensity(Object x) {
}
@Override
public String getReport() {
return GradientWrtParameterProvider.getReportAndCheckForError(this, 0.0,
return GradientWrtParameterProvider.getReportAndCheckForError(this, Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY, null);
}

Expand Down
2 changes: 1 addition & 1 deletion src/dr/inference/hmc/TransformedGradientWrtParameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public double[] getGradientLogDensity() {

@Override
public String getReport() {
return GradientWrtParameterProvider.getReportAndCheckForError(this, 0.0,
return GradientWrtParameterProvider.getReportAndCheckForError(this, Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY, null);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* GradientWrapperParser.java
* TransformedGradientWrtParameterParser.java
*
* Copyright (c) 2002-2017 Alexei Drummond, Andrew Rambaut and Marc Suchard
* Copyright (c) 2002-2023 Alexei Drummond, Andrew Rambaut and Marc Suchard
*
* This file is part of BEAST.
* See the NOTICE file distributed with this work for additional
Expand Down Expand Up @@ -29,7 +29,6 @@
import dr.inference.hmc.TransformedGradientWrtParameter;
import dr.inference.model.Parameter;
import dr.inference.model.TransformedParameter;
import dr.util.Transform;
import dr.xml.*;

/**
Expand Down

0 comments on commit 056a0dc

Please sign in to comment.