scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
mean(self, axis=None, dtype=None, out=None)

Returns the average of the matrix elements. The average is taken over all elements in the matrix by default, otherwise over the specified axis. :None:None:`float64` intermediate and return values are used for integer inputs.

Parameters

axis : {-2, -1, 0, 1, None} optional

Axis along which the mean is computed. The default is to compute the mean of all elements in the matrix (i.e., :None:None:`axis` = :None:None:`None`).

dtype : data-type, optional

Type to use in computing the mean. For integer inputs, the default is :None:None:`float64`; for floating point inputs, it is the same as the input dtype.

versionadded
out : np.matrix, optional

Alternative output matrix in which to place the result. It must have the same shape as the expected output, but the type of the output values will be cast if necessary.

versionadded

Returns

m : np.matrix

Compute the arithmetic mean along the specified axis.

See Also

numpy.matrix.mean

NumPy's implementation of 'mean' for matrices

Examples

See :

Back References

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

scipy.signal._signaltools.resample_poly

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 : /scipy/sparse/_base.py#1114
type: <class 'function'>
Commit: