Example program illustrating use of ns3::EmpiricalRandomVariable. More...
#include "ns3/command-line.h"
#include "ns3/histogram.h"
#include "ns3/nstime.h"
#include "ns3/ptr.h"
#include "ns3/random-variable-stream.h"
#include "ns3/simulator.h"
#include <iomanip>
#include <iostream>
#include <map>
Go to the source code of this file.
Functions | |
void | PrintStatsLine (const double value, const long count, const long n, const long sum) |
Prints a stat line. | |
void | PrintSummary (long sum, long n, double weighted, double expected) |
Prints the summary. | |
void | RunBothModes (std::string mode, Ptr< EmpiricalRandomVariable > erv, long n) |
Sample the random variable. | |
void | RunSingleSample (std::string mode, Ptr< EmpiricalRandomVariable > erv) |
Sample the random variable only once. | |
Example program illustrating use of ns3::EmpiricalRandomVariable.
This example illustrates
Consult the ns-3 manual for more information about the use of the random number generator
Definition in file empirical-random-variable-example.cc.