numpy.ma.count()

numpy.ma.count(a, axis=None) [source] Count the non-masked elements of the array along the given axis. Parameters: axis : int, optional Axis along which to count the non-masked elements. If axis is None, all non-masked elements are counted. Returns: result : int or ndarray If axis is None, an integer count is returned. When axis is not None, an array with shape determined by the lengths of the remaining axes, is returned. See also count_masked Count masked elements in array or a

numpy.ma.corrcoef()

numpy.ma.corrcoef(x, y=None, rowvar=True, bias=, allow_masked=True, ddof=) [source] Return Pearson product-moment correlation coefficients. Except for the handling of missing data this function does the same as numpy.corrcoef. For more details and examples, see numpy.corrcoef. Parameters: x : array_like A 1-D or 2-D array containing multiple variables and observations. Each row of x represents a variable, and each column a single observation of all those variables. Also see rowvar below.

numpy.ma.copy()

numpy.ma.copy(self, *args, **params) a.copy(order='C') = Return a copy of the array. Parameters: order : {?C?, ?F?, ?A?, ?K?}, optional Controls the memory layout of the copy. ?C? means C-order, ?F? means F-order, ?A? means ?F? if a is Fortran contiguous, ?C? otherwise. ?K? means match the layout of a as closely as possible. (Note that this function and :func:numpy.copy are very similar, but have different default values for their order= arguments.) Examples >>> x = np.array([

numpy.ma.conjugate()

numpy.ma.conjugate(x[, out]) = Return the complex conjugate, element-wise. The complex conjugate of a complex number is obtained by changing the sign of its imaginary part. Parameters: x : array_like Input value. Returns: y : ndarray The complex conjugate of x, with same dtype as y. Examples >>> np.conjugate(1+2j) (1-2j) >>> x = np.eye(2) + 1j * np.eye(2) >>> np.conjugate(x) array([[ 1.-1.j, 0.-0.j], [ 0.-0.j, 1.-1.j]])

numpy.ma.concatenate()

numpy.ma.concatenate(arrays, axis=0) [source] Concatenate a sequence of arrays along the given axis. Parameters: arrays : sequence of array_like The arrays must have the same shape, except in the dimension corresponding to axis (the first, by default). axis : int, optional The axis along which the arrays will be joined. Default is 0. Returns: result : MaskedArray The concatenated array with any masked entries preserved. See also numpy.concatenate Equivalent function in the top

numpy.ma.compress_rows()

numpy.ma.compress_rows(a) [source] Suppress whole rows of a 2-D array that contain masked values. This is equivalent to np.ma.compress_rowcols(a, 0), see extras.compress_rowcols for details. See also extras.compress_rowcols

numpy.ma.compress_rowcols()

numpy.ma.compress_rowcols(x, axis=None) [source] Suppress the rows and/or columns of a 2-D array that contain masked values. The suppression behavior is selected with the axis parameter. If axis is None, both rows and columns are suppressed. If axis is 0, only rows are suppressed. If axis is 1 or -1, only columns are suppressed. Parameters: x : array_like, MaskedArray The array to operate on. If not a MaskedArray instance (or if no array elements are masked), x is interpreted as a MaskedA

numpy.ma.compress_cols()

numpy.ma.compress_cols(a) [source] Suppress whole columns of a 2-D array that contain masked values. This is equivalent to np.ma.compress_rowcols(a, 1), see extras.compress_rowcols for details. See also extras.compress_rowcols

numpy.ma.compressed()

numpy.ma.compressed(x) [source] Return all the non-masked data as a 1-D array. This function is equivalent to calling the ?compressed? method of a MaskedArray, see MaskedArray.compressed for details. See also MaskedArray.compressed Equivalent method.

numpy.ma.common_fill_value()

numpy.ma.common_fill_value(a, b) [source] Return the common filling value of two masked arrays, if any. If a.fill_value == b.fill_value, return the fill value, otherwise return None. Parameters: a, b : MaskedArray The masked arrays for which to compare fill values. Returns: fill_value : scalar or None The common fill value, or None. Examples >>> x = np.ma.array([0, 1.], fill_value=3) >>> y = np.ma.array([0, 1.], fill_value=3) >>> np.ma.common_fill_value(x,