Re: [B.A.T.M.A.N.] BATMAN routing

hlabishi kobo
2011-02-24T09:58:02Z

HI everyone

Its been a while, I have been trying to test the weighted algorithm
(debugging and changing). I made changes on the method
bit_packet_count or rather replaced it with a method
weighted_bit_packet_count on which i try to count the number of
received OGMs received in a sliding window and giving them weights.
However when i test, i cant seem to ping other nodes to verify
connectivity (i first try on only two nodes). I have trying this and i
do not know i might have went wrong. see the code below.

int weighted_bit_packet_count(TYPE_OF_WORD *seq_bits)
{
int i, count = 0;
TYPE_OF_WORD word;

for (i = 0; i < NUM_WORDS; i++) {
//word = seq_bits[i];

if (seq_bits[i] == 1)
count += i;
}
return count;

}

Kind Regards
Hlabishi

On 12/20/10, Linus Lüssing <linus.luessing@web.de> wrote:
> Hi everyone,
>
> just wanted to share a website I found, which is actually for
> stock markets and their charts, but I think the Moving Average of
> a data set, that's what we'd have in common. And I guess what the
> economists have discovered and thought being useful could be
> useful for us, too. There are some nice and easy to understand
> articles here that explain the pros and cons:
>
> http://www.investopedia.com/university/
>
> Dictionary:
> - Simple Moving Average: http://www.investopedia.com/terms/s/sma.asp
> (what we have now)
> - Weighted Moving Average:
> http://www.investopedia.com/terms/l/linearlyweightedmovingaverage.asp
> (Hlabishi's proposal)
> - Exponential Moving Average:
> http://www.investopedia.com/terms/e/ema.asp
> - Double Exponential Moving Average:
> http://www.investopedia.com/terms/d/double-exponential-moving-average.asp
>
> Articles:
> - Weighted Moving Average:
> http://www.investopedia.com/articles/technical/060401.asp
> - Simple vs. Exponential Moving Average:
>
> http://www.investopedia.com/articles/trading/10/simple-exponential-moving-averages-compare.asp
> - Double Exponential Moving Averages Explained:
>
> http://www.investopedia.com/articles/trading/10/double-exponential-moving-average.asp
> - Moving Averages:
> http://www.investopedia.com/university/movingaverage/default.asp
>
> Cheers, Linus
>