请教一个关于求取峰值的问题!
好像不是严格意义上峰值在数组中的位置,而峰值也对应不起来是说和光标求的对应不上
总差那么一两个点,哪位大侠知道问题的原因啊?
谢谢!
.197
我曾经用过peak detector.vi,当时好象没觉得有任何问题,要不你把程序和你用的
波形数据发在版面上看看。
.16
你的光标是怎么设置的? 固定到点? peak detector是用插值算法寻峰的.不对应于已经有
的数据点--无论位置还是峰值.Help里面就有说明:
Because the peak detection algorithm uses a quadratic fit to find the peaks, i
t actually interpolates between the data points. Therefore, the indexes are no
t integers. In other words, the peaks found are not necessarily actual points
in the input data but may be at fractions of an index and at amplitudes not fo
und in the input array.
如果差出两个点以上.建议你多打即时游戏以练习准确点击.just kidding, :D
.70
谢谢!
既然是插值求出的,那我又想确切知道最大值点的位置(以后的分析要用到)而不是用插
值求出的点,该如何办呢?好像一般情况相差不超过两个点,指当我圆整之后。我又看了
些其他资料,说“If the data is a frequency domain signal and contains one or
more well-defined frequency components, use the Power & Frequency Estimate VI
in LabVIEW or the
PowerFrequencyEstimate function in Measurement Studio. These functions allow
you to get more accurate information about the exact frequencies of the peaks
and their corresponding energies. LabVIEW 6.0 also includes the Extract Single
Tone Information VI, which uses a curve-fitting method to precisely identify
the amplitude and frequency of the largest frequency component of a signal.
我看了这几个函数的说明,好像都是求取单个频率的,并且是要输入功率普之类的冬冬,
而我输入的是频响函数啊,不行的说!
大侠还有比较好的办法么?
再次感谢!
.197