问题
I have a group of dataset.
This is the graph I draw using this dataset. How to find the coordinate of peak value from this dataset? Anyone got good java algorithm regarding this issue?
回答1:
For this dataset specifically, I would do the following:
- Make the data stationary by taking first differences
- Signal when the data is above some threshold level. You can use a fixed threshold or an adaptive threshold (as in this answer for example)
When I use the dataset from this question, for illustration purposes, I get the following in Excel:
That should be easily implementable in Java.
Good luck!
来源:https://stackoverflow.com/questions/48489193/how-to-find-the-peak-coordinate-from-dataset