该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

本人不懂matlab,现在有网上找的线程的寻峰算法函数,我已经可以从程序中调用,但是对数学这块不懂,我不知道该传什么样的参数值,以下是.m寻峰算法的说明,代码有点多,在2楼发

% autofindpeaks(x,y,SlopeThreshold,AmpThreshold,smoothwidth,peakgroup,smoothtype)

% 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, [P,DetectionParameters]=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(x,y);

% or x=[0:.005:2];y=humps(x);P=autofindpeaks(x,y)

%

% Example 4: Additional input argument (after the x,y data) to control

% peak sensitivity; higher numbers for more peaks:

% x=[0:.1:10];y=5+5.*sin(x)+randn(size(x));autofindpeaks(x,y,3);

% or x=[0:.1:100];y=5+5.*cos(x)+randn(size(x));autofindpeaks(x,y,10);

% or x=[0:.1:1000];y=5+5.*cos(x)+randn(size(x));autofindpeaks(x,y,100)

%

% Example 5: Seven input arguments. Specify all peak detections parameters

% x=1:.2:100;

% y=gaussian(x,40,10)+gaussian(x,50,10)+.01.*randn(size(x));

% autofindpeaks(x,y,0.00026015,0.031007,19,21,3)

%

% Example 6: Seven input arguments. Specify all peak detections parameters, in

% this case using vectors to optimize for peaks with very different widths.

% x=1:.2:100;

% y=gaussian(x,20,1.5)+gaussian(x,80,30)+.02.*randn(size(x));

% plot(x,y,'c.')

% P=autofindpeaks(x,y,[0.001 .0001],[.2 .2],[5 10],[10 100],3)

% text(P(:,2),P(:,3),num2str(P(:,1)))

% disp(' ')

% disp(' peak # Position Height Width Area')

% disp(P)

%

% Example 7: Find, measure, and plot noisy peaks with unknown positions

% x=-50:.2:50;

% y=exp(-(x).^2)+exp(-(x+50*rand()).^2)+.02.*randn(size(x));

% plot(x,y,'m.')

% P=autofindpeaks(x,y);

% text(P(:,2),P(:,3),num2str(P(:,1)))

% disp(' peak # Position Height Width Area')

% disp(P)

%

% Note: You can pass the detection parameters found by autofindpeaks to

% other functions, such as measurepeaks. For example:

% x=[0:.1:50];y=5+5.*sin(x)+randn(size(x));[P,A]=autofindpeaks(x,y,3);

% P=measurepeaks(x,y,A(1),A(2),A(3),A(4),1);

%

% Related functions:

% autofindpeaksplot.m, findpeaksG.m, findvalleys.m, findpeaksL.m,

% findpeaksb.m, findpeaksb3.m, findpeaksplot.m, peakstats.m, findpeakSNR.m,

% findpeaksGSS.m, findpeaksSG, findpeaksLSS.m, findpeaksfit.m, findsteps.m,

% findsquarepulse.m, idpeaks.m, measurepeaks.m

% Copyright (c) 2017 Thomas C. O'Haver

% Permission is hereby granted, free of charge, to any person obtaining a copy

% of this software and associated documentation files (the "Software"), to deal

% in the Software without restriction, including without limitation the rights

% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

% copies of the Software, and to permit persons to whom the Software is

% furnished to do so, subject to the following conditions:

%

% The above copyright notice and this permission notice shall be included in

% all copies or substantial portions of the Software.

%

% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN

% THE SOFTWARE.

%

我只会从程序中传入x轴与y轴坐标,通过翻译那些什么斜率阈值之类的,完全不知道什么意思,我需要从类似以下这个峰谱图中(共32000+个坐标),找到大约50-300个峰,有很多峰很弱,应该需要灵敏度较高

通过这个寻峰算法的默认参数(x,y),只能寻到几个非常强的峰,该怎么调整参数才能找到那些弱峰呢

slope one算法matlab,求助我这个寻峰算法该怎么提高灵敏度相关推荐

  1. matlab寻峰算法,求助我这个寻峰算法该怎么提高灵敏度

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 本人不懂matlab,现在有网上找的线程的寻峰算法函数,我已经可以从程序中调用,但是对数学这块不懂,我不知道该传什么样的参数值,以下是.m寻峰算法的说明, ...

  2. a*算法matlab代码_导向滤波算法及其matlab代码实现

    导向滤波同样是一种平滑滤波算法,其与最小二乘滤波和双边滤波相比,同样是一种具有边缘保持的功能的图形滤波算法,可以用于处理图形噪点较多的图像,而且此种滤波算法与最小二乘滤波和双边滤波相比,有其独特的特点 ...

  3. 阵列算法matlab,阵列信号处理的常见算法

    阵列处理算法常用程序 AR argamse.m armaorder.m lsar.m lsarma.m myprogramme.m mywarma.m yulewalker.m ESPRIT TAM算 ...

  4. simca算法 matlab,SIMCA分类法中主成分分析算法探究.doc

    SIMCA分类法中主成分分析算法探究 SIMCA分类法中主成分分析算法探究 摘要:模式识别是研究用计算机模拟人的识别能力,对不同类型形式的数据进行描述.分类.识别等有关的理论和方法.SIMCA方法是基 ...

  5. 分类算法matlab实例,数据挖掘之分类算法---knn算法(有matlab例子)

    knn算法(k-Nearest Neighbor algorithm).是一种经典的分类算法.注意,不是聚类算法.所以这种分类算法 必然包括了训练过程. 然而和一般性的分类算法不同,knn算法是一种懒 ...

  6. bg算法 matlab,求助大神,有关BG算法

    程序如下 function [ FLAGS ] = BGSA( x,y,P0,L0 ) % [ FLAGS ] = BGSA( x,y,P0,L0 ) %  x: 序列的x坐标(仅用于绘图,如果不使用 ...

  7. 哈密尔顿算法matlab,[求助]关于哈密尔顿函数

    函数H(t,p,q)如果满足条件: (状态方程)dp/dt=H3=∂H/∂q (协态方程)dq/dt=-H2=-∂H/∂p 其中H1.H2.H3分别表示H对第一.第二.第三个变量的偏导数, 则H称为H ...

  8. lpp降维算法matlab,dimension-reduct method 多种降维算法,包括lle,lpp,ltsa matlab 238万源代码下载- www.pudn.com...

    文件名称: dimension-reduction-method下载 收藏√  [ 5  4  3  2  1 ] 开发工具: matlab 文件大小: 857 KB 上传时间: 2014-11-05 ...

  9. 基追踪算法 matlab,什么是基追踪算法?基于改进基追踪方法的信号去噪 - 全文

    什么是基追踪算法 基追踪(basis pursuit)算法是一种用来求解未知参量L1范数最小化的等式约束问题的算法. 基追踪是通常在信号处理中使用的一种对已知系数稀疏化的手段.将优化问题中的L0范数转 ...

最新文章

  1. zemax设计35mm镜头_ZEMAX怎样优化MTF?
  2. linux使用logrotate管理日志
  3. WebService学习总结(2)——WebService是什么?
  4. python是什么类型的编程语言-2.python是什么编程语言。
  5. 《社会调查数据管理——基于Stata 14管理CGSS数据》一导读
  6. python培训学堂怎么样_如何评价开智学堂开设的课程?
  7. ubuntu2004 安装protoc
  8. 【SAM】bzoj5084: hashit
  9. xp计算机找不到音量调节,XP找不到音量控制程序怎么办
  10. chrome浏览器安装crx Mouse(鼠标手势)插件
  11. 加减乘除求余 利用 位运算实现(详细)
  12. 第五太阳纪终结,人类文明新开端?
  13. 基于FPGA的数据采集系统(一)
  14. SQL 根据日期精确计算年龄
  15. 数组的下标为什么从0开始而不是从1开始
  16. MyBatis批量的增删改查操作
  17. DOS命令:systeminfo
  18. 美国J1签证面签需要准备哪些材料?
  19. Client requested master to start replication from impossible position; the last event was read from
  20. 会计报表分析相关指标收集

热门文章

  1. linux搭建java开发环境_Linux搭建Java开发环境
  2. 牛客网练习赛26B(简单的dp)
  3. Python使用装饰器捕获异常
  4. Elastic-Job
  5. Linux中切换用户(su命令)
  6. java 关闭守护线程_Java并发编程之线程生命周期、守护线程、优先级、关闭和join、sleep、yield、interrupt...
  7. linux 编译链接出错,Qt编译和链接错误
  8. SQL 窗口函数的优化和执行
  9. MySQL访问权限管理
  10. java oracle 视图不存在_java – 获取异常ORA-00942:表或视图不存在 – 插入现有表时...