summaryrefslogtreecommitdiff
path: root/remove_sevenday_frequency.m
blob: 14c8242ee34eb9145da736f53292c8301da476d0 (plain)
1
2
3
4
5
6
7
8
function [ret, removed] = remove_sevenday_frequency(quantity)
	kickout = [ 0 1 1 0 0 0 0 0 0 0 0 0 0 0 ];

	f = fft(quantity);
	removed = diag(kickout) * f;
	ret = real(ifft(diag(~kickout) * f));
end