scipy.maxentropy.maxentutils.rowmeans

scipy.maxentropy.maxentutils.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.maxentutils.robustlog

Next topic

scipy.maxentropy.maxentutils.sample_wr

This Page