changeset 216:cd3dced4f534 refactoring

Comment fixes.
author mas01cr
date Tue, 04 Dec 2007 10:23:28 +0000
parents 241bc55a1a4e
children 685eb707b660
files query.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/query.cpp	Tue Dec 04 10:17:30 2007 +0000
+++ b/query.cpp	Tue Dec 04 10:23:28 2007 +0000
@@ -40,7 +40,7 @@
 // taking a window of length seqlen over a buffer of length length,
 // and placing the sum of the elements in that window in the first
 // element of the window: thus replacing all but the last seqlen
-// elements in the buffer the corresponding windowed sum.
+// elements in the buffer with the corresponding windowed sum.
 void audioDB::sequence_sum(double *buffer, int length, int seqlen) {
   double tmp1, tmp2, *ps;
   int j, w;
@@ -61,6 +61,8 @@
   }
 }
 
+// In contrast to sequence_sum() above, sequence_sqrt() and
+// sequence_average() below are simple mappers across the sequence.
 void audioDB::sequence_sqrt(double *buffer, int length, int seqlen) {
   int w = length - seqlen + 1;
   while(w--) {