PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

13 行
293B

  1. % Talkie library
  2. % Copyright 2011 Peter Knight
  3. % This code is released under GPLv2 license.
  4. %
  5. % Calculate autocorrelation of speech segment
  6. function r = autocorrelate(w,len)
  7. r = zeros(1,len);
  8. wlen = length(w);
  9. for n=1:len
  10. r(n) = sum( w(1:wlen-n+1) .* w(n:wlen) );
  11. end