Navigation

Operators and Keywords

Function List:

C++ API

spstats.m File Reference


Functions

endif if (nargin==1)[i
 if (nargout > 1) mean
endif if (nargout > 2) diff
 !assert (n, sparse([4, 2]))
 !assert (m, sparse([10/4, 3/2]), 10 *eps)
 !assert (v, sparse([5/3, 1/2]), 10 *eps)

Variables

 function [count, mean, var]
endif j
endif v = find (S)
 i = 1:length (v)
 S = sparse (i, j, v)
 endif [n, m] = size (S)
 count = sum (sparse (i, j, 1, n, m))
 var = sum (diff .* diff) ./ (count - 1)
endif endfunction !test [n, m, v] = spstats([1 2 1 2 3 4],[2 2 1 1 1 1])

Function Documentation

!assert ( ,
sparse([5/3, 1/2])  ,
10 *  eps 
)

!assert ( ,
sparse([10/4, 3/2])  ,
10 *  eps 
)

!assert ( ,
sparse([4, 2])   
)

endif if ( nargout  ,
 
)

if ( nargout  ,
 
)

endif if ( nargin  = = 1  ) 


Variable Documentation

endif endfunction !test[n, m, v] = spstats([1 2 1 2 3 4],[2 2 1 1 1 1])

count = sum (sparse (i, j, 1, n, m))

endif[n, m] = size (S)

function[count, mean, var]

Initial value:

 spstats (S, j)

  if (nargin < 1 || nargin > 2)
    print_usage ()

i = 1:length (v)

S = sparse (i, j, v)

else v = find (S)

var = sum (diff .* diff) ./ (count - 1)