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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to