prune-trace: incremental mode for SamplingPruner

The --incremental switch allows to add more samples if the resulting
confidence intervals are not satisfactory yet.

Change-Id: I65dc99522f45f8a4eaf4ce68e832f7636585381d
This commit is contained in:
Horst Schirmeier
2015-01-15 19:11:33 +01:00
parent 79211fd31d
commit 4cbcf30b7c
5 changed files with 110 additions and 32 deletions

View File

@ -17,10 +17,10 @@ class SamplingPruner : public Pruner {
fail::CommandLine::option_handle NO_WEIGHTING;
uint64_t m_samplesize;
bool m_use_known_results, m_weighting;
bool m_use_known_results, m_weighting, m_incremental;
public:
SamplingPruner() : m_samplesize(0), m_use_known_results(false), m_weighting(true) { }
SamplingPruner() : m_samplesize(0), m_use_known_results(false), m_weighting(true), m_incremental(false) { }
virtual std::string method_name() { return "sampling"; }
virtual bool commandline_init();
virtual bool prune_all();
@ -30,6 +30,8 @@ public:
aliases->push_back("sampling");
}
virtual bool set_incremental(bool incremental) { m_incremental = incremental; return true; }
private:
bool sampling_prune(const fail::Database::Variant& variant);
};