scipy.stats.threshold

scipy.stats.threshold(a, threshmin=None, threshmax=None, newval=0)

Clip array to a given value.

Similar to numpy.clip(), except that values less than threshmin or greater than threshmax are replaced by newval, instead of by threshmin and threshmax respectively.

Returns: a, with values less than threshmin or greater than threshmax
replaced with newval

Previous topic

scipy.stats.zmap

Next topic

scipy.stats.trimboth

This Page

Quick search