bundles / scipy 1.17.1 / scipy / stats / _mstats_basic / _mask_to_limits
function
scipy.stats._mstats_basic:_mask_to_limits
Signature
def _mask_to_limits ( a , limits , inclusive ) Summary
Mask an array for values outside of given limits.
Extended Summary
This is primarily a utility function.
Parameters
a: arraylimits: (float or None, float or None)A tuple consisting of the (lower limit, upper limit). Values in theinput array less than the lower limit or greater than the upper limitwill be masked out. None implies no limit.inclusive: (bool, bool)A tuple consisting of the (lower flag, upper flag). These flagsdetermine whether values exactly equal to lower or upper are allowed.
Returns
: A MaskedArray.
Raises
: A ValueError if there are no values within the given limits.
Aliases
-
scipy.stats._mstats_basic._mask_to_limits