资源简介
国外的大师级的寻峰算法,带详细注释
代码片段和文件信息
function [PDetectionParameters]=autofindpeaks(xySlopeThresholdAmpThresholdsmoothwidthpeakgroupsmoothtype)
% autofindpeaks(xySlopeThresholdAmpThresholdsmoothwidthpeakgroupsmoothtype)
% Automatic peak finder that locates and measures the positive peaks in a
% noisy x-y time series data. similar to findpeaksG or findpeaskSG except
% that the peak detection parameters SlopeThreshold AmpThreshold
% smoothwidth peakgroup smoothtype can be omitted and the function will
% calculate trial values based on the number of data points and/or the
% optional peak density (the last of 3 arguments after x and y). Returns a
% table (P) of peak number position absolute peak height peak-valley
% difference perpendicular drop area and tangent skim area of each peak.
% Detects peaks by looking for downward zero-crossings in the first
% derivative whose upward slopes exceed SlopeThreshold. If Peakgroup=0 the
% local maximum is taken as the peak height and position. For best results
% remove the background from the data before using this function. Optional
% input arguments “slopeThreshold“ “ampThreshold“ and “smoothwidth“
% control peak sensitivity of each segment. Higher values will neglect
% smaller features. “Smoothwidth“ is a vector of the widths of the smooths
% applied before peak detection; larger values ignore narrow peaks. If
% smoothwidth=0 no smoothing is performed. “Peakgroup“ is a vector of the
% number points around the top part of the peak that are taken for
% measurement. The argument “smoothtype“ determines the smooth algorithm:
% If smoothtype=1 rectangular (sliding-average or boxcar) If
% smoothtype=2 triangular (2 passes of sliding-average) If smoothtype=3
% pseudo-Gaussian (3 passes of sliding-average)
% Run testautopeaks.m to test and demonstrate this function.
% In version 1.1 [PDetectionParameters]=autofindpeaks...also returns the
% peak detection parameters as a 4-element row vector.
% See http://terpconnect.umd.edu/~toh/spectrum/Smoothing.html and
% http://terpconnect.umd.edu/~toh/spectrum/PeakFindingandMeasurement.htm
% (c) T.C. O‘Haver 2016. Version 1.1 February 2017
%
% The script testautofindpeaks.m runs all the examples below additionally
% plotting the data and numbering the peaks (like autofindpeaksplot.m)
%
% Example 1: One input argument; data in single vector
% x=[0:.01:5];y=sin(10*x);autofindpeaks(y);
%
% Example 2: One input argument; data in two columns of a matrix
% x=[0:.01:5]‘;y=x.*sin(x.^2).^2;M=[x y];autofindpeaks(M);
%
% Example 3: Two input arguments; data in separate x and y vectors
% x=[0:.1:100];y=(x.*sin(x)).^2;autofindpeaks(xy);
% or x=[0:.005:2];y=humps(x);P=autofindpeaks(xy)
%
% Example 4: Additional input argument (after the xy data) to control
% peak sensitivity; higher numbers for more peaks:
% x=[0:.1:10];y=5+5.*sin(x)+randn(size(x));autofindpeaks(xy3);
% or x=[0:.1:100];y=5+5.*cos(x)+randn(size(x));autofindpeaks(x
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 19351 2017-02-07 06:46 PeakFinder\autofindpeaks.m
文件 19087 2017-02-07 06:46 PeakFinder\autofindpeaksplot.m
文件 23081 2017-02-06 10:09 PeakFinder\autopeaks.m
文件 24228 2017-02-06 10:09 PeakFinder\autopeaksplot.m
文件 232 2016-03-16 06:59 PeakFinder\BWF.m
文件 3589 2016-05-04 10:17 PeakFinder\DemoFindPeak.m
文件 108288 2016-05-04 10:41 PeakFinder\DemoFindPeaksb.m
文件 115683 2015-04-09 08:57 PeakFinder\DemoFindPeaksb3.m
文件 4141 2015-04-07 07:27 PeakFinder\DemoFindPeakSNR.m
文件 5584 2016-11-29 07:18 PeakFinder\DemoFindPeaksSb.m
文件 309 2016-05-03 09:30 PeakFinder\demofindpeaksx.m
文件 10480 2015-03-28 08:20 PeakFinder\findpeaks.m
文件 105026 2016-04-22 19:02 PeakFinder\findpeaksb.m
文件 110136 2016-04-22 19:02 PeakFinder\findpeaksb3.m
文件 8501 2015-10-05 07:27 PeakFinder\FindpeaksComparison.m
文件 9264 2016-04-11 06:59 PeakFinder\findpeaksE.m
文件 7245 2016-04-11 07:00 PeakFinder\findpeaksF.m
文件 109516 2016-04-11 07:00 PeakFinder\findpeaksfit.m
文件 10635 2016-05-06 08:22 PeakFinder\findpeaksG.m
文件 9403 2016-04-11 07:02 PeakFinder\findpeaksGSS.m
文件 7858 2016-04-11 06:51 PeakFinder\findpeaksL.m
文件 8137 2016-04-11 07:03 PeakFinder\findpeaksLSS.m
文件 9280 2016-04-11 07:04 PeakFinder\findpeaksnr.m
文件 8438 2016-05-06 08:22 PeakFinder\findpeaksplot.m
文件 7916 2016-04-11 07:05 PeakFinder\findpeaksplotL.m
文件 105649 2016-11-29 07:17 PeakFinder\findpeaksSb.m
文件 13691 2016-11-29 07:16 PeakFinder\findpeaksSG.m
文件 12251 2016-11-29 07:17 PeakFinder\findpeaksSL.m
文件 7123 2016-04-11 07:06 PeakFinder\findpeaksSS.m
文件 11541 2016-04-11 07:05 PeakFinder\findpeaksT.m
文件 11597 2016-04-11 07:06 PeakFinder\findpeaksTplot.m
............此处省略34个文件信息
- 上一篇:穷查理宝典
- 下一篇:基于肤色模型的人脸检测MATLAB代码
相关资源
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
- 神经网络分类matlab程序
- matlab正弦信号发生器的设计
- matlab程序用Hopfield网络解决TSP
- 实例matlab 编程100个常用程序
- 用MATLAB(BPSK仿真 直接扩频)
评论
共有 条评论