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.
Parameters: | a : ndarray
|
---|---|
Returns: | a, with values less (greater) than threshmin (threshmax) replaced with newval. : |