Skip to content

Instantly share code, notes, and snippets.

@iskandr
Created January 30, 2013 17:25
Show Gist options
  • Save iskandr/4674879 to your computer and use it in GitHub Desktop.
Save iskandr/4674879 to your computer and use it in GitHub Desktop.
def numpy_count_thresh(values, thresh):
return np.sum(values < thresh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment