Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Horizon cos math

08 Oct 2021 »

https://bl.ocks.org/kmandov/a1abe4aa380fb8b4bd0b4c081a76ce13

var series = [];
for (var i = 0, variance = 0; i < 1500; i++) {
    variance += (Math.random() - 0.5) / 10;
    series.push(Math.cos(i/100) + variance);
}