numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
mini(self, axis=None)
deprecated

This function is identical to both:

  • self.min(keepdims=True, axis=axis).squeeze(axis=axis)

  • np.ma.minimum.reduce(self, axis=axis)

Typically though, self.min(axis=axis) is sufficient.

Parameters

axis : int, optional

The axis along which to find the minima. Default is None, in which case the minimum value in the whole array is returned.

Returns

min : scalar or MaskedArray

If :None:None:`axis` is None, the result is a scalar. Otherwise, if :None:None:`axis` is given and the array is at least 2-D, the result is a masked array with dimension one smaller than the array on which mini is called.

Return the array minimum along the specified axis.

Examples

This example is valid syntax, but we were not able to check execution
>>> x = np.ma.array(np.arange(6), mask=[0 ,1, 0, 0, 0 ,1]).reshape(3, 2)
... x masked_array( data=[[0, --], [2, 3], [4, --]], mask=[[False, True], [False, False], [False, True]], fill_value=999999)
This example is valid syntax, but we were not able to check execution
>>> x.mini()
masked_array(data=0,
             mask=False,
       fill_value=999999)
This example is valid syntax, but we were not able to check execution
>>> x.mini(axis=0)
masked_array(data=[0, 3],
             mask=[False, False],
       fill_value=999999)
This example is valid syntax, but we were not able to check execution
>>> x.mini(axis=1)
masked_array(data=[0, 2, 4],
             mask=[False, False, False],
       fill_value=999999)

There is a small difference between mini and min :

This example is valid syntax, but we were not able to check execution
>>> x[:,1].mini(axis=0)
masked_array(data=3,
             mask=False,
       fill_value=999999)
This example is valid syntax, but we were not able to check execution
>>> x[:,1].min(axis=0)
3
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.ma.core.MaskedArray.mini

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/ma/core.py#5730
type: <class 'function'>
Commit: