Skip to content

Commit

Permalink
Removed subtraction of mean of time series from wavelet code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Henry Colligan IV committed May 21, 2019
1 parent 979874e commit 2ffbbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wave_matlab/wavelet.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
if (J1 == -1), J1=fix((log(n1*dt/s0)/log(2))/dj);, end
if (mother == -1), mother = 'MORLET';, end
%....construct time series to analyze, pad if necessary
x(1:n1) = Y - mean(Y);
x(1:n1) = Y; %- mean(Y);
if (pad == 1)
base2 = fix(log(n1)/log(2) + 0.4999); % power of 2 nearest to N
x = [x,zeros(1,2^(base2+1)-n1)];
Expand Down

0 comments on commit 2ffbbdb

Please sign in to comment.