perhaps, I am not sure but maybe a group of functions needs to be created, each unique function for maybe i don't 1 sec time intervals and plot each function on a graph and then approx one function from that, not sure if that makes sense, just something i came up with