This task comprises of adding the ability to generate bit errors, losses and bandwidth and delay variations according to a number of distributions.
The desired distributions are for the moment:
normal, pareto, paretonormal, exponential, bounded pareto.
Header file for exponential and bounded pareto
Source file for exponential and bounded pareto
Logged In: YES
user_id=1645190
Originator: YES
The proposed command line interface for exponential and bounded pareto would be:
patt_gen -ber -expo <filename> <mode> <size> <Random_seed> <mean>
patt_gen -ber -bpar <filename> <mode> <size> <Random_seed> <shape> <min> <upper bound>
The parameters on the command line specifies the values for the distance between bit errros/packet loss
when bit error or packet loss patterns are generated. In effect, the value that is returned from the functions
is the number of zeros before the next one in the pattern file.
For delay and bandwidth patterns, the parameters specify the value that should be stored. In effect,
each delay or bandwidth value should be set to the value returned from the function. When creating
a pattern with 1000 delay values, the functions are called 1000 times to return values.
File Added: dist.c