Be the first to rate this file! 0 Downloads (last 30 days) File Size: 3.34 KB File ID: #12267

Fast algorithm for generating doubly-stochasstic matrices

by Itamar Cohen

 

14 Sep 2006 (Updated 14 Sep 2006)

A simple and fast algorithm for generating doubly-stochasstic matrices

| Watch this File

File Information
Description

A simple and fast algorithm for generating doubly-stochasstic matrices.
(matrices, where the sum of each column and each row is exactly 1).
Each matrix is chosen uniformly from the space of all NxN doubly-stochasstic
matrices.
Note: the generated matrices are indeed doubly-stochastic, but it's not
proved / checked yet that the algoithm indeed gnereate the matrices UAR.

Simple algorithm for generating doubly-stochastic matrices
(matrices, where the sum of each column and each row is exactly 1).
The algorithm:
1. set an NxN matrix TM s.t TM[i,j] = 1/N for each 1<=i,j<=N.
2. for X number of iterations:
   3. Draw i1, j1, i2, j2 UAR on [1,...,N].
   4. Draw d UAR on (0, min {TM[i1, j1], TM[i2, j2]}).
   5. M[i1,j1] <= M[i1,j1] - d;
   6. M[i2,j2] <= M[i2,j2] - d;
   7. M[i1,j2] <= M[i1,j2] + d;
   8. M[i2,j1] <= M[i2,j1] + d;

Required Products Statistics Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Itamar Cohen 22 Oct 2008 08:39:18
probability Itamar Cohen 22 Oct 2008 08:39:18
doublystochastic traffic matrix uniform Itamar Cohen 22 Oct 2008 08:39:18

Contact us at files@mathworks.com