Forums  > Software  > Finding periods in an array which are constant  
     
Page 1 of 1
Display using:  

Jurassic


Total Posts: 255
Joined: Mar 2018
 
Posted: 2019-09-01 21:23
"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.

contango_and_cash


Total Posts: 110
Joined: Sep 2015
 
Posted: 2019-09-03 17:25
Pandas rolling standard deviation should solve this for you.
Previous Thread :: Next Thread 
Page 1 of 1