Function for Generating bistochastic matrix ?
Afficher commentaires plus anciens
Bistochastic matrix P is matrix where the sum each column or each row is 1, and aslo for n>=0 P^n is also bistochastic,
Another definition : a stochastic matrix P is bistochastic if P' is also stochastic . the question is :
Is there any predefined or sophisticated function to generate such matrices ?
I already tried a method using "magic" function :
>>H=magic(10); % say we want a Bistoch of dimension n
>>N=sum(H(1,:)); % to get the Unique SUM
>>P=H/N;
Cordially
6 commentaires
Matt J
le 17 Mar 2013
Is there any predefined or sophisticated function to generate such functions ?
Generate them from what?
Youssef Khmou
le 17 Mar 2013
Cedric
le 17 Mar 2013
The "magic" solution seems to be quite efficient already; did you ask because you need to be able to generate random bistochastic matrices?
Youssef Khmou
le 17 Mar 2013
Cedric
le 17 Mar 2013
Hi Youssef, I asked precisely because of the regularity. I have no clean solution, but if I had to find some solution quickly, I would certainly go for yours, using two successive RANDPERM to permute rows and columns. It would not be optimal, but ok for a temporary approach I guess.
Youssef Khmou
le 17 Mar 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!