Next: spsum, Previous: sprandn, Up: Function Reference
Return the stats for the non-zero elements of the sparse matrix s. count is the number of non-zeros in each column, mean is the mean of the non-zeros in each column, and var is the variance of the non-zeros in each column.
Called with two input arguments, if s is the data and j is the bin number for the data, compute the stats for each bin. In this case, bins can contain data values of zero, whereas with
spstats (
s)
the zeros may disappear.