Network Topology Generator
Last update : 2/3/2007

randdist - Generate a random variable in respect with a discrete distribution

Calling Sequence

[n]=randdist(ind,vect)

Parameters

Description

Generate a random variable n in respect with a discrete distribution defined by a vector of values ind and their corresponding probabilities vect.

Examples

  ind=3:11;
  vect=[1 3 5 9 15 9 5 3 1];
  [n]=randdist(ind,vect);
  

Authors

Foued Melakessou University of Luxembourg

Bibliography

InTra Project 2004-2007

Used Function

randdist.