A Discrete-Event Network Simulator Home Tutorials  ▼ Docs    ▼ Develop ▼ API
main-propagation-loss.cc File Reference
`#include "ns3/propagation-loss-model.h"`
`#include "ns3/jakes-propagation-loss-model.h"`
`#include "ns3/constant-position-mobility-model.h"`
`#include "ns3/config.h"`
`#include "ns3/string.h"`
`#include "ns3/boolean.h"`
`#include "ns3/double.h"`
`#include "ns3/pointer.h"`
`#include "ns3/gnuplot.h"`
`#include "ns3/simulator.h"`
`#include <map>`
Include dependency graph for main-propagation-loss.cc:

Go to the source code of this file.

## Functions

static double dround (double number, double precision)
Round a double number to the given precision. More...

int main (int argc, char *argv[])

static Gnuplot TestDeterministic (Ptr< PropagationLossModel > model)

static Gnuplot TestDeterministicByTime (Ptr< PropagationLossModel > model, Time timeStep=Seconds(0.001), Time timeTotal=Seconds(1.0), double distance=100.0)

static Gnuplot TestProbabilistic (Ptr< PropagationLossModel > model, unsigned int samples=100000)

## Function Documentation

 static double dround ( double number, double precision )
static

Round a double number to the given precision.

e.g. dround(0.234, 0.1) = 0.2 and dround(0.257, 0.1) = 0.3

Definition at line 39 of file main-propagation-loss.cc.

Referenced by TestProbabilistic().

Here is the caller graph for this function:

 int main ( int argc, char * argv[] )

Definition at line 219 of file main-propagation-loss.cc.

Here is the call graph for this function:

 static Gnuplot TestDeterministic ( Ptr< PropagationLossModel > model )
static

Definition at line 55 of file main-propagation-loss.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

 static Gnuplot TestDeterministicByTime ( Ptr< PropagationLossModel > model, Time timeStep = `Seconds (0.001)`, Time timeTotal = `Seconds (1.0)`, double distance = `100.0` )
static

Definition at line 170 of file main-propagation-loss.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

 static Gnuplot TestProbabilistic ( Ptr< PropagationLossModel > model, unsigned int samples = `100000` )
static

Definition at line 101 of file main-propagation-loss.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: