AnalyzeFactory

class AnalyzeFactory : public feasst::Analyze

Contains multiple Analyze objects.

Public Functions

void initialize(MonteCarlo *mc)

Initialize and precompute before trials.

void add(std::shared_ptr<Analyze> analyze)

Add an Analyze object.

void remove(const int index)

Remove an Analyze object.

int num() const

Return the number.

const std::vector<std::shared_ptr<Analyze>> &analyzers() const

Return the Analyze objects.

const Analyze &analyze(const int index) const

Return an Analyze object by index.

void write_to_file(const MonteCarlo &mc)

Write all Analyze immediately.

void adjust_bounds(const bool adjusted_up, const std::vector<int> &states, AnalyzeFactory *analyze_factory)

For use with CollectionMatrixSplice, transfer multistate between threads.

void trial(const MonteCarlo &mc)

Check every trial if action is to be performed.

void set_timer()

Set the timer.

const TimerRDTSC *const timer() const

Return timer.