percolation stats using apache common math