Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
StatisticProgressReporter Class Reference

#include <StatisticProgress.h>

Public Member Functions

 StatisticProgressReporter (bool enabled, std::size_t total, std::size_t probe_draws=5, std::size_t update_every=1, std::ostream &os=std::cout, std::string label="Monte-Carlo", std::string item_label="accepted", std::shared_ptr< StatisticProgressMonitor > monitor=nullptr, std::string phase="monte_carlo")
 
void accepted (std::size_t accepted_count, std::size_t attempts=0, std::size_t failures=0)
 
void finish (std::size_t accepted_count, std::size_t attempts, std::size_t failures)
 

Detailed Description

Terminal MC progress reporter with measured ETA and optional GUI monitor.

Definition at line 44 of file StatisticProgress.h.

Constructor & Destructor Documentation

◆ StatisticProgressReporter()

StatisticProgressReporter::StatisticProgressReporter ( bool  enabled,
std::size_t  total,
std::size_t  probe_draws = 5,
std::size_t  update_every = 1,
std::ostream &  os = std::cout,
std::string  label = "Monte-Carlo",
std::string  item_label = "accepted",
std::shared_ptr< StatisticProgressMonitor monitor = nullptr,
std::string  phase = "monte_carlo" 
)

Definition at line 50 of file StatisticProgress.cpp.

Member Function Documentation

◆ accepted()

void StatisticProgressReporter::accepted ( std::size_t  accepted_count,
std::size_t  attempts = 0,
std::size_t  failures = 0 
)

Definition at line 112 of file StatisticProgress.cpp.

◆ finish()

void StatisticProgressReporter::finish ( std::size_t  accepted_count,
std::size_t  attempts,
std::size_t  failures 
)

Definition at line 128 of file StatisticProgress.cpp.


The documentation for this class was generated from the following files: