Adding missed generate threshold script

Signed-off-by: Vidhoon Viswanathan <vidhoon@cs.utexas.edu>