[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] About pareto.cc



>> Random::pareto(scale,shape) returns  scale / (u ^ (1 / 
>shape)) where u is
>a
>> uniformly distributed random variable (see rng.h). So 
>dividing scale by
>> interval_ is identical to dividing the random value by 
>interval_. It makes
>> no difference. Or am I misunderstanding what you're saying ?
>
>    It's me who was wrong to think that time resolution was spoiled.
>But I still don't get what pareto really does. While calculating p1_,
>both the avg and shape are taken into consideration. After setting
>p1_ to burstlen_*(shape_ - 1.0)/shape_ and generating a pareto rv,
>its mean is burstlen_, and there's a pursuing rounding-off. What I
>think reasonable is setting p1_ to ontime_*(shape_ - 1.0)/shape_,
>generating a rv, rem_=rv/interval_ ,and no rounding-off.
>Are they basically the same? And that's what confuses me.

You have to round off, as rem_ is required to be an integer (a number of
packets, with a fixed packet size).


*******************************************************************************
This email and any files transmitted with it are intended solely for the use of
the individual or entity to whom they are addressed and may not be divulged to
any third party without the express permission of the originator.  Any views
expressed in this message are those of the individual sender, except where the
sender specifically states them to be the views of Thales Research Ltd.

Following the acquisition of Racal Electronics plc by Thomson-CSF, please note
that our new name is Thales Research Ltd.  For more information regarding the
Thales Group (formerly Thomson-CSF) please see our website www.Thalesgroup.com
*******************************************************************************