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

本人不懂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),只能寻到几个非常强的峰,该怎么调整参数才能找到那些弱峰呢

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

  1. Re: 求助:5道算法题

    http://www.newsmth.net/frames.html 发信人: cutepig (cutepig), 信区: Algorithm 标  题: 求助:5道算法题 发信站: 水木社区 (S ...

  2. MATLAB实战系列(三十九)-matlab多目标优化之海洋捕食者算法

    前言 文中涉及代码可参见 matlab多目标优化之海洋捕食者算法 海洋捕食者算法(Marine Predators Algorithm, MPA)是Afshin Faramarzi等人于2020年提出 ...

  3. 建模matlab的算法代码呀,数学建模算法打包

    数学建模十大算法程序详解(打包了) 十大算法 1说明.txt Floyd算法 floyd.txt 中国数学建模-数学工具-Floyd最短路算法的MATLAB程序.txt Newton插值.txt di ...

  4. MATLAB机器学习系列-12:蚁群算法优化原理及其matlab实现

    蚁群算法原理 概述 蚁群算法(Ant Colony Algorithm, ACA)由Marco Dorigo于1992年在他的博士论文中首次提出,该算法模拟了自然界中蚂蚁的觅食行为. 蚂蚁在寻找食物源 ...

  5. kmeans改进 matlab,基于距离函数的改进k―means 算法

    摘要:聚类算法在自然科学和和社会科学中都有很普遍的应用,而K-means算法是聚类算法中经典的划分方法之一.但如果数据集内相邻的簇之间离散度相差较大,或者是属性分布区间相差较大,则算法的聚类效果十分有 ...

  6. matlab算法大全 pdf_遗传模拟退火算法求解旅行商(TSP)问题

    hello大家好,很高兴又和大家见面了.在之前的遗传算法(GA)求解旅行商问题(TSP)MATLAB代码讲解和模拟退火(SA)算法求解旅行商 (TSP)问题MATLAB代码讲解这两篇推文中,分别讲解了 ...

  7. matlab fbp fan arc,滤波反投影重建算法(FBP)实现及应用(matlab)

    滤波反投影重建算法实现及应用(matlab) 1. 滤波反投影重建算法原理 滤波反投影重建算法常用在CT成像重建中,背后的数学原理是傅立叶变换:对投影的一维傅立叶变换等效于对原图像进行二维的傅立叶变换 ...

  8. 多目标人工秃鹫优化算法(MATLAB源码分享,智能优化算法) 提出了一种多目标版本的人工秃鹫优化算法(AVOA)

    多目标人工秃鹫优化算法(MATLAB源码分享,智能优化算法) 提出了一种多目标版本的人工秃鹫优化算法(AVOA),用于多目标优化问题. AVOA的灵感来源于非洲秃鹫的生活方式. 档案.网格和领导者选择 ...

  9. rls算法matlab实现,第5章基于RLS算法的数据预测与MATLAB实现MATLAB实现.PDF

    第5章基于RLS算法的数据预测与MATLAB实现MATLAB实现 第 5章 基于 RLS算法的数据预测与 第5章 基于RLS算法的数据预测与MATLAB实现 MATLAB实现 RLS 1795 递归最 ...

最新文章

  1. mysql5.1 与mysql5.5 字符集设置区别
  2. CVPR 2021 | 自适应激活函数ACON: 统一ReLU和Swish的新范式
  3. C#中结构数据类型的使用
  4. 架构之:微服务架构漫谈
  5. 2.12 priority_queue
  6. linux vi刷新页面,vim的神级配置 - bubifengyun的个人页面 - OSCHINA - 中文开源技术交流社区...
  7. 【英语学习】【WOTD】smithereens 释义/词源/示例
  8. 提供给JAVA程序员的QQ群
  9. 基于Java Socket的局域网聊天系统
  10. java中小数位数的限制,Java中限制小数位数有关问题
  11. STM32-ESP8266解析天气
  12. 网易考拉API,根据ID取产品详情 OneBound数据
  13. 怎么把英文翻译成中文?手机中英翻译的简单方法
  14. 【算力网络】算力网络的发展愿景及目标
  15. 爬虫跳过https安全认证
  16. python pygame模块按键响应
  17. 系统级程序设计第二次作业
  18. 【DR_CAN-MPC学习笔记】1.最优化控制和MPC基本概念
  19. 红细胞膜包裹载抗癌药的PLGA纳米载体/聚多巴胺涂覆载药plga材料(生物偶联)
  20. html中去除浮漂有什么作用,各种浮漂用途介绍及选择

热门文章

  1. 快来,别人不知道的秘密,QQ空间视频下载教程
  2. 比洗牙更好 教你5分钟消灭牙垢
  3. 夜曲编程PPT,EXCEL课(侵删)
  4. jwt_token的有效时间和刷新时间
  5. 软考案例题目答题技巧
  6. 江苏计算机电缆报价,江苏价格低的阻燃计算机电缆
  7. CAD转JPG图片,在线转换成高质量彩色图片
  8. 计算机视觉 开源_年轻的计算机科学家分享了她的开源故事
  9. 第四届蓝桥杯JavaA组省赛真题
  10. 关于色环电阻的读数和功率