1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#define XERR
#include "loop.ih"
// by analysis/run.cc
void Loop::iterate()
{
//FBB CSVTable sensTable = headerSensitivity(); // table to collect
//FBB // sensitivity values
Random::instance().setSeed(d_scenario.seed());
d_modalities.active(); // prepare the active Mods.
for (size_t idx = 0, end = d_scenario.nIterations(); idx != end; ++idx)
{
ofstream spreadStream;
size_t nCases = cases();
d_roundBiopCosts.assign(d_nRounds, 0); // reset the rounds biop costs
Random::instance().reinit(nCases, d_scenario.generatorType());
if (Globals::vary()) // maybe vary the parameters
{
spreadStream = outStream(d_options.spreadFile(), idx);
labels(spreadStream);
d_modalities.vary(spreadStream); // vary the used modalities
d_tumorInfo.vary(spreadStream); // vary Beir7, Growth,
// Incidence, and Survival
}
writeParameters(idx); // write the actual parameter values,
CSVTable rounds = headerRounds(idx);
resetCounters();
genCases(idx, nCases);
writeRounds(rounds); // -> ORG/loopendout.cpp
//FBB writeSensitivity(sensTable, idx);
}
//FBB if (sensTable.stream())
//FBB sensTable << hline();
}
|