ndarray.mean()

ndarray.mean(axis=None, dtype=None, out=None, keepdims=False) Returns the average of the array elements along given axis. Refer to numpy.mean for full documentation. See also numpy.mean equivalent function

MaskedArray.argmax()

MaskedArray.argmax(axis=None, fill_value=None, out=None) [source] Returns array of indices of the maximum values along the given axis. Masked values are treated as if they had the value fill_value. Parameters: axis : {None, integer} If None, the index is into the flattened array, otherwise along the specified axis fill_value : {var}, optional Value used to fill in the masked values. If None, the output of maximum_fill_value(self._data) is used instead. out : {None, array}, optional Ar

matrix.A

matrix.A Return self as an ndarray object. Equivalent to np.asarray(self). Parameters: None Returns: ret : ndarray self as an ndarray Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x matrix([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]) >>> x.getA() array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]])

numpy.ma.harden_mask()

numpy.ma.harden_mask(self) = Force the mask to hard. Whether the mask of a masked array is hard or soft is determined by its hardmask property. harden_mask sets hardmask to True. See also hardmask

numpy.ma.column_stack()

numpy.ma.column_stack(tup) = Stack 1-D arrays as columns into a 2-D array. Take a sequence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack. 1-D arrays are turned into 2-D columns first. Parameters: tup : sequence of 1-D or 2-D arrays. Arrays to stack. All of them must have the same first dimension. Returns: stacked : 2-D array The array formed by stacking the given arrays. Notes The function is applied to both

ndarray.nonzero()

ndarray.nonzero() Return the indices of the elements that are non-zero. Refer to numpy.nonzero for full documentation. See also numpy.nonzero equivalent function

numpy.isneginf()

numpy.isneginf(x, y=None) [source] Test element-wise for negative infinity, return result as bool array. Parameters: x : array_like The input array. y : array_like, optional A boolean array with the same shape and type as x to store the result. Returns: y : ndarray A boolean array with the same dimensions as the input. If second argument is not supplied then a numpy boolean array is returned with values True where the corresponding element of the input is negative infinity and value

DataSource.abspath()

DataSource.abspath(path) [source] Return absolute path of file in the DataSource directory. If path is an URL, then abspath will return either the location the file exists locally or the location it would exist when opened using the open method. Parameters: path : str Can be a local file or a remote URL. Returns: out : str Complete path, including the DataSource destination directory. Notes The functionality is based on os.path.abspath.

numpy.polynomial.hermite.hermfromroots()

numpy.polynomial.hermite.hermfromroots(roots) [source] Generate a Hermite series with given roots. The function returns the coefficients of the polynomial in Hermite form, where the r_n are the roots specified in roots. If a zero has multiplicity n, then it must appear in roots n times. For instance, if 2 is a root of multiplicity three and 3 is a root of multiplicity 2, then roots looks something like [2, 2, 2, 3, 3]. The roots can appear in any order. If the returned coefficients are c

numpy.polynomial.hermite.hermweight()

numpy.polynomial.hermite.hermweight(x) [source] Weight function of the Hermite polynomials. The weight function is and the interval of integration is . the Hermite polynomials are orthogonal, but not normalized, with respect to this weight function. Parameters: x : array_like Values at which the weight function will be computed. Returns: w : ndarray The weight function at x. Notes