ztellman/narrator

Moving windows problem: where does it start?

Closed this issue · 0 comments

tjg commented
(map :value 
     (query-seq 
       (n/moving 3 n/rate) 
       {:timestamp identity :period 1} 
       (range 10)))

;; From README:
=> (1 2 3 3 3 3 3 3 3 3)

;; But on Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux:
=> (0 1 2 3 3 3 3 3 3 3)

I think this depends on where the rightmost edge of window starts. The README thinks it starts to the right of the 0th element. My computer thinks it starts to the left.

More system info:

[narrator "0.1.0"]
[org.clojure/clojure "1.5.1"]