Build a function in JAVA to identify peaks in a time series data

Job ID: 36175559

Budget: $30 – $250 USD

This article describes an algorithm to identify peaks from time series data. I need a program in Java that I can use to identify peaks using the algorithm in this article:
https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-data

The input to the program would be a two-dimensional array of date/time stamps and their corresponding values. The output would be another two-dimensional array with the start date/time and the duration of each peak.