Mercurial > hg > aimc
comparison matlab/bmm/carfac/SAI_UpdateBuffers.m @ 608:fc353426eaad
Better functionization of SAI, and new way to make picture with lag
marginal and smoothed history of lag marginal.
author | dicklyon@google.com |
---|---|
date | Mon, 13 May 2013 21:15:56 +0000 |
parents | ec3a1c74ec54 |
children | b3118c9ed67f |
comparison
equal
deleted
inserted
replaced
607:49eef19e4f1d | 608:fc353426eaad |
---|---|
35 [seg_len, n_nap_ch] = size(seg_naps); | 35 [seg_len, n_nap_ch] = size(seg_naps); |
36 | 36 |
37 % Array of what to shift in to first or next layer. | 37 % Array of what to shift in to first or next layer. |
38 new_chunk = seg_naps; | 38 new_chunk = seg_naps; |
39 | 39 |
40 gain = 1.1; % gain from layer to layer; could be layer dependent. | 40 gain = 1.05; % gain from layer to layer; could be layer dependent. |
41 | 41 |
42 %% | 42 %% |
43 % Decimate using a 2-3-4-filter and partial differencing emphasize onsets: | 43 % Decimate using a 2-3-4-filter and partial differencing emphasize onsets: |
44 kernel = filter([1 1]/2, 1, filter([1 1 1]/3, 1, [1 1 1 1 0 0 0 0]/4)); | 44 kernel = filter([1 1]/2, 1, filter([1 1 1]/3, 1, [1 1 1 1 0 0 0 0]/4)); |
45 kernel = kernel + 2*diff([0, kernel]); | 45 kernel = kernel + 2*diff([0, kernel]); |