Skip to content
Snippets Groups Projects
Commit 5e374b57 authored by Simon Belak's avatar Simon Belak
Browse files

Make variation trend test more robust

parent e0be54e6
Branches
Tags
No related merge requests found
......@@ -18,15 +18,15 @@
(map :variation-trend
[(variation-trend {:series (map-indexed
(fn [i x]
[i (* x (+ 1 (* (/ i 100)
[i (* x (+ 1 (* (/ i 1000)
(- (* 2 (rand)) 0.9))))])
(repeatedly 100 #(rand-int 10)))
:resolution :month})
(repeatedly 1000 #(rand-int 10)))
:resolution :day})
(variation-trend {:series (map-indexed
(fn [i x]
[i (* x (+ 1 (* (/ (- 100 i) 100)
[i (* x (+ 1 (* (/ (- 1000 i) 1000)
(- (* 2 (rand)) 0.9))))])
(repeatedly 100 #(rand-int 10)))
:resolution :month})
(variation-trend {:series (m/indexed (repeat 100 1))
:resolution :month})]))
(repeatedly 1000 #(rand-int 10)))
:resolution :day})
(variation-trend {:series (m/indexed (repeat 1000 1))
:resolution :day})]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment