# HG changeset patch # User mas01cr # Date 1196763808 0 # Node ID cd3dced4f53401730c431773738ca9cb2c85ffdb # Parent 241bc55a1a4ee2aff1ec667b177e8d5087bfa733 Comment fixes. diff -r 241bc55a1a4e -r cd3dced4f534 query.cpp --- 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--) {