This is a pre-release version (latest).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / ma / core / masked_greater_equal

function

numpy.ma.core:masked_greater_equal

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py:2024

Signature

def masked_greater_equal(x, value, copy = True)

Summary

Mask an array where greater than or equal to a given value.

Extended Summary

This function is a shortcut to masked_where, with condition = (x >= value).

Examples

import numpy as np
import numpy.ma as ma
a = np.arange(4)
a
ma.masked_greater_equal(a, 2)

See also

masked_where

Mask where a condition is met.

Aliases

  • numpy.ma.masked_greater_equal