#!/bin/bash
# table5: generate numbers of table 5 of sasn2012 paper tks&bos
# usage: bin/table5
# note: fun from base directory
# 20120312 erikt(at)xs4all.nl

INFILE="data/20110216"
TMPFILE="table1.$$.$RANDOM"

# count 'tweets'
bin/uniform | bin/grep.count.pl.uniform > $TMPFILE
# compute offset
cut -d' ' -f1,4,7 $TMPFILE |\
    bin/tweets2seats.elections | bin/offset.elections

rm -f $TMPFILE
exit 0
