ASAP icon indicating copy to clipboard operation
ASAP copied to clipboard

Timeseries data consistency

Open CrashLaker opened this issue 6 years ago • 0 comments

How to cope when shrinking a timeseries dataset?

I noticed that: x = Array.apply(null, Array(y.length)).map(function (_, i) {return i;}) in index.html only gives us the indexes related to y`s length

I tried doing something like this but I doubt its correctness..

smooth_val = 100
var y = smooth(rsdata["values"], smooth_val)
step - Math.ceil(rsdata["timestamps"].length/smooth_val)
x = rsdata["timestamps"].filter((x,i) => i%step == 0)

does anyone have a solution?

CrashLaker avatar Aug 23 '19 22:08 CrashLaker