Mercurial > hg > emotion-detection-top-level
diff Code/Descriptors/yin/private/src/rsum_inplace.m @ 0:ea0c737c6323
first commit
author | Dawn Black <dawn.black@eecs.qmul.ac.uk> |
---|---|
date | Thu, 26 Jul 2012 14:46:25 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Code/Descriptors/yin/private/src/rsum_inplace.m Thu Jul 26 14:46:25 2012 +0100 @@ -0,0 +1,10 @@ +% rsum_inplace(x,N) - in place running sum +% +% x: matrix to sum +% N: samples - size of running sum window +% +% Matrix x is summed row-wise. The last (N-1) samples are not valid. +% N may be fractionary (handled by linear interpolation). +% +% Mex function. +% Beware: input argument is assigned to. This is not matlab-kosher!