find_stats.m - function [ssdmean, ssdstd_dev] =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 function [ssdmean, ssdstd_dev] = find_stats(wavemat1, wavemat2, numgrooves, numsamples, . .. groovejump, samplejump, numwindows) % find_stats(wave_matrix_1, wave_matrix_2, #_of_grooves, #_of_samples, num_windows) % finds the mean and standard deviation of the sum of squared differences % over num_windows pairs of windows from wave_matrix_1 and wave_matrix_2 % which theoretically are matches global Gdebug [h1,w1] = size(wavemat1) [h2,w2] = size(wavemat2) ssd = zeros(1, numwindows) A = zeros(numgrooves, numsamples) B = zeros(numgrooves, numsamples) %calculate the valid overlap region for wavemat 1 if groovejump >= 0 lowestvalidgroove = 1 else lowestvalidgroove = 1-groovejump end highestvalidgroove = min(h1-numgrooves, h2-groovejump-numgrooves) samplejump = -samplejump %lowestvalidsample = w1 - samplejump lowestvalidsample = samplejump + 1 highestvalidsample = w1 - numsamples grange = highestvalidgroove - lowestvalidgroove srange = highestvalidsample - lowestvalidsample for i = 1:numwindows
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/20/2008 for the course ENGR 190 taught by Professor Staff during the Spring '08 term at Santa Clara.

Page1 / 4

find_stats.m - function [ssdmean, ssdstd_dev] =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online