This is documentation for an old release of SciPy (version 0.8.). Read this page in the documentation of the latest stable release (version 1.15.1).
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.