interp thresh is command line arg; handled division by 0 for thresh = 0