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

Re: [ns] A confusing question about vegas.cc code?



On Sun, 5 Nov 2000, Haobo Yu wrote:

> roundup of floating points.

well, where's the explicit cast from float to int, then? In fact,
since you're going from float+0.5 to int, where the fraction is
discarded, int() should be superfluous.

L.

> On Mon, 6 Nov 2000, CWen56 wrote:
> 
> >     I am quite interested in vegas algorithm and having a further reasearch now.
> > While I survey the sourec code of vegas.cc I found something strange. On the
> > calculation of delta = int ((expect-vactual_)*v_baseRTT_ + 0.5), why constant
> > 0.5 should be added? May someone tell me how this determination come from which
> > paper? I didn't find this constant added in several papers about vegas
> > discussion.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>