com.cloudera.sparkts
This function should only be called when you can safely make the assumption that the time samples are uniform (monotonously increasing) across time.