如何从数据集中找到峰坐标 [英] How to find the peak coordinate from dataset
本文介绍了如何从数据集中找到峰坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组数据集.
这是我使用此数据集绘制的图形. 如何从该数据集中找到峰值坐标? 关于这个问题,有人得到好的Java算法吗?
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?
推荐答案
对于此数据集,我将执行以下操作:
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)
当我使用此问题的数据集 时,出于说明目的,我在Excel中得到以下信息:
When I use the dataset from this question, for illustration purposes, I get the following in Excel:
那应该很容易在Java中实现.
That should be easily implementable in Java.
祝你好运!
这篇关于如何从数据集中找到峰坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文