sparslog 0.1.5

SDR receiver for IKEA sparsnäs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/awk -f
{
    col = 3;
    if (!size) size = 5;
    mod = NR%size;
    if (NR <= size) {
	count++;
    }
    else {
	sum -=array[mod];
    };
    sum += $(col);
    array[mod] = $(col);
    print $1 "," sum/count;
}