【源码】voigt线型拟合仿真

640?wx_fmt=jpeg

[parmin,resnom,res,exitflag]= fit2voigt(dat,par0) 


此代码执行以下操作:如果您提供两列光谱数据(第一列为波数,第二列为吸光度),以及初始峰值参数par0,它将为您提供优化的voigt线型参数parmin以及拟合质量信息。

This code do the following: if you supply a two column spectral data ( first column is wavenumber, second column is absorbance) dat, and initial peak parameters par0, it gives you optimised voigt line shape parameters parmin, and the fit and fitting quality information. 


本代码使用了Sanjar Abrarov的Voigt/complex误差函数。您需要下载该代码,并将其放在本代码的文件夹中。

It uses the the Voigt/complex error function of Sanjar Abrarov. You need to download the code, and put under the same folder as these files. 


测试数据也包括在内。您可以通过运行voigtfit_test文件进行测试。

Also included is the test data. you can test by running the voigtfit_test m.file。


如果您发现任何错误或有任何建议,发邮件到作者信箱:mruzi17@gmail.com。


参考文献:

R.J. Wells, Rapid approximation to the Voigt/Faddeeva function and its derivatives, JQSRT 62(1999), 29-48 

S. M. Abrarov and B. M. Quine, Appl. Math. Comput., 218 (2011) 1894-1902


完整资料领取请加QQ群免费下载:

640?wx_fmt=png

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值