, value, rtol=1.0000000000000001e-05, atol=1e-08, copy=True, shrink=True)

Mask the array x where the data are approximately equal in value, i.e. (abs(x - value) <= atol+rtol*abs(value))

Suitable only for floating points. For integers, please use masked_equal. The mask is set to nomask if posible.


x : array_like

Array to fill.

value : float

Masking value.

rtol : {float}, optional

Tolerance parameter.

atol : {float}, optional

Tolerance parameter (1e-8).

copy : {True, False}, optional

Whether to return a copy of x.

shrink : {True, False}, optional

Whether to collapse a mask full of False to nomask

Previous topic

Next topic

This Page

Quick search