2
$\begingroup$

I'm working on project in Matlab which aim is to demonstrate how Luby Transform codes work. I need to generate generation matrix and I need to get some values from Robust Soliton Distribution, can someone explain me how to generate numbers according to this distribution, I need to generate one value for each column in my matrix, I saw Robust Solition formula here http://en.wikipedia.org/wiki/Soliton_distribution#Robust_distribution but I don't understand what each variable means. Thanks in advance

Here is the formula form Wiki:

enter image description here

enter image description here

enter image description here

$\endgroup$
2
  • 5
    $\begingroup$ These are not the formulas for the distribution: they are formulas for corrections to it. The soliton distribution itself is discussed (with R and Python code) at stats.stackexchange.com/questions/37581/…. $\endgroup$
    – whuber
    Commented Feb 20, 2014 at 15:00
  • $\begingroup$ While the two questions are related, the answers to the second question don't seem to answer this one, so I don't think this should be closed as a duplicate. $\endgroup$
    – Silverfish
    Commented Sep 21, 2016 at 9:08

2 Answers 2

1
$\begingroup$

You may try this

Put the cumulative probabilities in a vector according to soliton : Vector P then the variable

find(rand < P , 1,'first')

gives you your variable.

$\endgroup$
0
$\begingroup$

Use the inverse CDF method. Note that you'll first need to normalize this distribution.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.