Hi İslam,

Sorry about the previous post! I was not using the latest version either :)

In the Rev.1.16, +5 rounding is also removed.


http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x/tos/lib/net/4bitle/LinkEstimatorP.nc?view=log

<http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x/tos/lib/net/4bitle/LinkEstimatorP.nc?view=log>
Regards,


On Sat, Mar 6, 2010 at 1:38 PM, Mehmet Akif Antepli
<[email protected]>wrote:

> Hi Islam,
>
> I think it is used to take floor of the moving average expression. Lets
> say Alpha*X + (10-Alpha) * newEst = 7, if there wan't additional 5 term, etx
> would be 7/10=0, when you add 5, 4+7=11/10=1.
>
> Regards,
>
> 2010/3/6 Islam Hegazy <[email protected]>
>
>>  Hi,
>>
>> In the implementation of the 4bit estimator 'LinkEstimatorP.nc', the
>> equation (Alpha*X + (10-Alpha) * newEst + 5) / 10 is used to calculated the
>> inquality X=ne->inquality or EETX X = ne->eetx. My question is what is the
>> purpose of + 5 in the equation. I understand that we are calculating a
>> moving average with this equation but I can't understand the purpose of
>> adding 5.
>>
>> Regards
>> Islam Hegazy
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Mehmet Akif Antepli
> Telecommunications Lab. D-217
> Dept. of EEE
> Middle East Technical University
>



-- 
Mehmet Akif Antepli
Telecommunications Lab. D-217
Dept. of EEE
Middle East Technical University
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to