Measuring percolation threshold is possible by using statistics class