本文介绍了如何检测显著峰?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有是坐标点的表(X,Y-显示为图表系列)。现在,我检查了如何检测峰。对于每一个点(P)我要检查是否(PY> P-1.Y&功放;&功放; PY> P + 1.Y)。如果是,它必须是一个峰值。

I've got a table with coordinate-points (X,Y-shown as a Chart-Series). Now I checked out how to detect peaks.For each Point (P) I have to check whether (P.Y > P-1.Y && P.Y > P+1.Y). If it is, it must be a Peak.

但是,如果我想只得到了整个图形的真正显著峰?我的猜测是,我会NEET某种阈值。还有什么比这道门槛是或者我应该如何改变条件峰?

But what if I want to get only the really significant peaks for the entire graph? My guess is, I would neet some kind of threshold. What could this threshold be or how should I change the condition for peaks?

在此先感谢,

BC ++

推荐答案

最简单的事情来到我的脑海里:

The simplest thing coming to my mind:

public bool IsPeak(Point prev, Point aPoint, Point next, float threshold)
    {
        return aPoint.Y - prev.Y > threshold && aPoint.Y - next.Y;
    }

这篇关于如何检测显著峰?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 17:38