Implementation of Shannon Entropy for Random Ray (#3030)

Co-authored-by: Ethan Krammer <ethan@DESKTOP-MGFGK9N>
Co-authored-by: John Tramm <john.tramm@gmail.com>
This commit is contained in:
Ethan Krammer 2024-06-27 09:22:10 -05:00 committed by GitHub
parent 8ce81d132a
commit a8171cbd4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 283 additions and 30 deletions

View file

@ -531,7 +531,8 @@ void finalize_generation()
if (settings::run_mode == RunMode::EIGENVALUE) {
// Calculate shannon entropy
if (settings::entropy_on)
if (settings::entropy_on &&
settings::solver_type == SolverType::MONTE_CARLO)
shannon_entropy();
// Collect results and statistics