summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-08 23:35:03 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-08 23:35:03 +0200
commit280b2875e45d8cdf2de813a4bce53cc2d1870b04 (patch)
tree9133e03110c88502686c32195236caa5a11569c2
parent60a853f499da45a6329e6416750e3853fa28cbe6 (diff)
downloaddmc-280b2875e45d8cdf2de813a4bce53cc2d1870b04.tar.gz
dmc-280b2875e45d8cdf2de813a4bce53cc2d1870b04.tar.bz2
dmc-280b2875e45d8cdf2de813a4bce53cc2d1870b04.zip
remove_sevenday_frequency: Use a fixed kickout
Gives much better results than the dynamic one.
-rw-r--r--remove_sevenday_frequency.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/remove_sevenday_frequency.m b/remove_sevenday_frequency.m
index 26cc35b..7012d1d 100644
--- a/remove_sevenday_frequency.m
+++ b/remove_sevenday_frequency.m
@@ -1,6 +1,5 @@
function [ret, removed] = remove_sevenday_frequency(quantity)
- A = fft(sum(quantity'));
- kickout = (abs(A) > 2500) & (abs(A) < 20000);
+ kickout = [ 0 1 1 0 0 0 0 0 0 0 0 0 0 0 ]
f = fft(quantity);
removed = diag(kickout) * f;