Commit 9a2f1cbd authored by Julian Kosciessa's avatar Julian Kosciessa
Browse files

corrected HPF implementation by not downsampling the data. Note that this...

corrected HPF implementation by not downsampling the data. Note that this feature was correctly implemented in previous versions but appears to have been lost among some recent merges.
parent d204fcaf
......@@ -333,7 +333,7 @@ for s = 1:numel(timescales) % loop through timescales
cg_data = cell(nloops,1); % make cell: cg_data{istart}{trials}(chan-by-time)
resamp_x = data_sel.trial;
for is = 1:nloops % loop over starting points here!
cg_data{is} = cellfun(@(resamp_x) resamp_x(:, is:(sc-1+1):end), resamp_x, 'UniformOutput', false ); % add padding% Filter
cg_data{is} = cellfun(@(resamp_x) resamp_x(:, is:(stepSize-1+1):end), resamp_x, 'UniformOutput', false ); % add padding% Filter
end
clear resamp_x;
case 'pointavg' % original point averaging coarse graining, no loop over starting points
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment