10 int i = numberOfEvents;
12 int prEventId = distribution(rng);
16 file << (
unsigned char)(prEventId);
21 int main(
int argc,
char * argv[]) {
23 std::cerr <<
"Usage: event_generator <count> <length_avg>" << std::endl;
30 int count = std::stoi(argv[1]);
31 int lengthAvg = std::stoi(argv[2]);
32 int lengthStdDev = lengthAvg;
34 std::normal_distribution<> lengthDistribution(lengthAvg, lengthStdDev);
36 for (
int i=0; i<count; i++) {
38 sprintf(buffer,
"scenario_%04d.bin", i);
39 std::string fileName(buffer);
void writeEventsToFile(std::ofstream &file, int numberOfEvents, std::mt19937 &rng)
int main(int argc, char *argv[])
static constexpr int PageSize
constexpr Event Termination