Skip to content

Commit

Permalink
logic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gvonness committed Aug 23, 2023
1 parent 843f253 commit ca9559c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ case class HmcmcTelemetryUpdate(
s"HMCMC Sampling :: Samples remaining - $samplesRemaining"
val acceptanceString =
if (jumpAttempts != 0) {
f" // Acceptance Ratio - ${jumpAcceptances.toDouble / jumpAttempts}%1.2"
f" // Acceptance Ratio - ${jumpAcceptances.toDouble / jumpAttempts}%1.2f"
} else {
""
}
val hamiltonianDifferentialString =
hamiltonianDifferential.map(v => f" // exp(-dH) = ${Math.exp(-v)}%1.2").getOrElse("")
hamiltonianDifferential.map(v => f" // exp(-dH) = ${Math.exp(-v)}%1.2f").getOrElse("")

val simulationDifferentialString =
f" // epsilon = $simulationDifferential%1.5"
f" // epsilon = $simulationDifferential%1.5f"

baseString + acceptanceString + hamiltonianDifferentialString + simulationDifferentialString
}
Expand Down

0 comments on commit ca9559c

Please sign in to comment.