A Discrete-Event Network Simulator
API
empirical-random-variable-example.cc File Reference
#include "ns3/simulator.h"
#include "ns3/nstime.h"
#include "ns3/command-line.h"
#include "ns3/random-variable-stream.h"
#include "ns3/histogram.h"
#include "ns3/ptr.h"
#include <iomanip>
#include <iostream>
#include <map>
+ Include dependency graph for empirical-random-variable-example.cc:

Go to the source code of this file.

Functions

void PrintStatsLine (const double value, const long count, const long n)
 Prints a stat line. More...
 
void PrintSummary (long sum, long n, double weighted, double expected)
 Prints the summary. More...
 
void RunBothModes (std::string mode, Ptr< EmpiricalRandomVariable > erv, long n)
 Sample the random variable. More...
 
void RunSingleSample (std::string mode, Ptr< EmpiricalRandomVariable > erv)
 Sample the random variable only once. More...