/**
  * Interpolated finance results from the beggining time till the end in perscribed delta
  *
  * @param delta
  * @return a map of stock components to time series
  * @throws IOException
  */
 public Map<String, DoubleTimeSeries> seriesMapInerp(long delta) throws IOException {
   long[] financeTimes = this.timeperiods();
   long start = financeTimes[0];
   long end = financeTimes[financeTimes.length - 1];
   long[] times = TimeSpanUtils.getTime(start, end, delta);
   return seriesMapInerp(times);
 }
 @Test
 public void testTimeSeriesUtil() {
   assertArrayEquals(TimeSpanUtils.getTime(0l, 5, 2l), new long[] {0, 2, 4, 6, 8});
   assertArrayEquals(TimeSpanUtils.getTime(0l, 8l, 2l), new long[] {0, 2, 4, 6, 8});
   assertArrayEquals(TimeSpanUtils.getTime(0l, 8l, 5), new long[] {0, 2, 4, 6, 8});
 }