scipy.maxentropy.rowmeans

scipy.maxentropy.rowmeans(A)

This is a wrapper for general dense or sparse dot products. It is only necessary as a common interface for supporting ndarray, scipy spmatrix, and PySparse arrays.

Returns a dense (m x 1) vector representing the mean of the rows of A, which be an (m x n) sparse or dense matrix.

>>> a = numpy.array([[1,2],[3,4]], float)
>>> rowmeans(a)
array([ 1.5,  3.5])

Previous topic

scipy.maxentropy.robustlog

Next topic

scipy.maxentropy.sample_wr

This Page

Quick search