Home > freetb4matlab > sparse > spstats.m

spstats

PURPOSE ^

% Return the stats for the non-zero elements of the sparse matrix @var{s}.

SYNOPSIS ^

function [count, mean, var] = spstats (S, j)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{count}, @var{mean}, @var{var}] =} spstats (@var{s})
% @deftypefnx {Function File} {[@var{count}, @var{mean}, @var{var}] =} spstats (@var{s}, @var{j})
% Return the stats for the non-zero elements of the sparse matrix @var{s}.
% @var{count} is the number of non-zeros in each column, @var{mean}
% is the mean of the non-zeros in each column, and @var{var} is the  
% variance of the non-zeros in each column.
%
% Called with two input arguments, if @var{s} is the data and @var{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 
% @code{spstats (@var{s})} the zeros may disappear.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003