mqr.utils.
clip_where#
- mqr.utils.clip_where(a, a_min, a_max, where)#
Clamp a so that a_min <= a <= a_max is true or all true, masked by where.
- Parameters:
- anumber or array_like
Value or values to clip.
- a_minnumber
Minimum value.
- a_maxnumber
Maximum value.
- wherebool or array[bool]
Clip when this value or corresponding element evaluates to True.