Jurassic


Total Posts: 289 
Joined: Mar 2018 


"A measurement made at time T is recorded in array D as D[T]. Your task is to find all the periods of time D[T], D[T+1], ..., D[S] (of length at least 3) during which the movement of the object is stable.
Noting that periods can be contained within others."
I suspect this needs to be broken into constant speed cases and another array, differences of the original, to find constant acceleration. From here you have to find constant periods in each array. How do you go about this? I think it may have something to do with recursion.





Pandas rolling standard deviation should solve this for you. 

