[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM

Xiaoke Jiang shock.jiang at gmail.com
Tue Dec 25 01:14:45 PST 2012


Thank you!  I will make it perfect then ask you to check it.

thanks

My Regards,
Xiaoke Jiang (蒋小可)

Ph.D Candidate,
Dept. of Computer Science and Technology,
Tsinghua University, P. R. China

On Dec 25, 2012, at 5:11 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:

> Sure.  I have updated the figure.  
> 
> Btw, all documentation is stored in ndnsim repository under docs/sources in sphinx format (http://pypi.python.org/pypi/Sphinx). You can also add corrections to the documentation and I can later "compile" and update docs on http://ndnsim.net website.
> 
> ---
> Alex
> 
> On Dec 25, 2012, at 12:50 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
> 
>> Thank you Alex, but would you please change it 4th figure (duration=1000) to the attached one. 
>> 
>> As to q and s, the two parameters are very important, http://en.wikipedia.org/wiki/Zipf%E2%80%93Mandelbrot_law.  It's the parameters of Zipf-Mandelbrot PMF. So I will add setter and getter functions later.
>> 
>> thanks
>> <N100-Frq100-Duration1000.pdf>
>> 
>> My Regards,
>> Xiaoke Jiang (蒋小可)
>> 
>> Ph.D Candidate,
>> Dept. of Computer Science and Technology,
>> Tsinghua University, P. R. China
>> 
>> On Dec 25, 2012, at 4:33 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
>> 
>>> Thanks Xiaoke,
>>> 
>>> I have incorporated your pull request with several minor changes.  Also, I've made a documentation section on ndnsim, including your simulation results that compare with theoretical zipf distribution: http://ndnsim.net/applications.html#consumerzipfmandelbrot.
>>> 
>>> Sincerely,
>>> Alex 
>>> 
>>> 
>>> On Dec 24, 2012, at 7:09 PM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
>>> 
>>>> Dear All,
>>>> 
>>>> I have implemented an app which requests contents following Zipf-Mandelbrot distribution (number of Content frequency Distribution). This class is subclass of ConsumerCbr. 
>>>> 
>>>> My change includes:
>>>> 1) modify ConsumerCbr.h, make its private members to protected, which allow ConsumberZipfManbelbrot to access those members.
>>>> 2) add an 2 file, consumber-zipf-mandelbrot.{h, cc} in ndnSIM/apps/ 
>>>> 
>>>> Usage is very simple, just as what you do to ConsumerCbr, 
>>>> 
>>>> ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerZipfMandelbrot");
>>>> //ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");
>>>> consumerHelper.SetPrefix (prefix);
>>>> consumerHelper.SetAttribute ("Frequency", StringValue ("100")); // 100 interests a second
>>>> //consumerHelper.SetAttribute ("Randomize", StringValue ("uniform")); // 100 interests a second
>>>> 
>>>> of course, I have written some script to test it, I put it into ndnSIM/example/ndn-zipf-mandelbrot.cc
>>>> 
>>>> I will share it with github with Alex's help, I hope it may help you.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> thanks
>>>> 
>>>> My Regards,
>>>> Xiaoke Jiang 
>>>> 
>>>> Ph.D Candidate,
>>>> Dept. of Computer Science and Technology,
>>>> Tsinghua University, P. R. China
>>>> _______________________________________________
>>>> ndnSIM mailing list
>>>> ndnSIM at lists.cs.ucla.edu
>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>> 
>> 
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20121225/b30cb224/attachment.html>


More information about the ndnSIM mailing list