使用Origin进行非线性高斯拟合


---------------------------------------------------------------------------------------------------

1、导入数据

在这里插入图片描述

2、高亮显示名为Amplitude的列,并绘制散点图。

在这里插入图片描述

3、返回工作簿,选中名为Error的列,然后右键单击并 从上下文菜单中选择“设置为:Y Error”。

在这里插入图片描述

4、添加误差条

将鼠标光标放在高亮显示列的右边缘附近。光标将变为在这里插入图片描述。此时,将列拖放到图表上。数据将作为误差条添加到散点图上。
在这里插入图片描述

5、拟合数据

选择菜单“Analysis: Fitting: Nonlinear Curve Fit”打开“NLFit”对话框。
在这里插入图片描述

6、选择高斯拟合

在“Function Selection”页面中,将“Category”下拉列表设置为“Peak Functions”,并将“Function”下拉列表设置为“高斯”。
在这里插入图片描述

7、拟合

单击“Fit”按钮以执行拟合,并在提示对话框中选择“No”以保持图形窗口处于活动状态。
在这里插入图片描述

8、现在我们要将y0固定为0并更新结果。单击graph页面左上角的绿色锁,然后选择Change Parameters。

在这里插入图片描述

9、对话框将重新打开,其中包含上次执行操作时使用的设置。转到Parameters选项卡,选中y0的Fixed框并输入Value 0。

在这里插入图片描述

10、单击“Fit”按钮更新文件并关闭对话框。从图上更新的表中,我们可以看到 y0=±0。

在这里插入图片描述
ref:Origin_Tutorial_2019

  • 11
    点赞
  • 44
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
% This folder contains a collection of "fitting" functions. % (Some has demo options - the third section) % The GENERAL input to the functions should be samples of the distribution. % % for example, if we are to fit a normal distribution ('gaussian') with a mean "u" and varaince "sig"^2 % then the samples will distribute like: % samples = randn(1,10000)*sig + u % %fitting with Least-Squares is done on the histogram of the samples. % fitting with Maximum likelihood is done directly on the samples. % % % Contents of this folder % ======================= % 1) Maximum likelihood estimators % 2) Least squares estimators % 3) EM algorithm for estimation of multivariant gaussian distribution (mixed gaussians) % 4) added folders: Create - which create samples for the EM algorithm test % Plot - used to plot each of the distributions (parametric plot) % % % % % % Maximum likelihood estimators % ============================= % fit_ML_maxwell - fit maxwellian distribution % fit_ML_rayleigh - fit rayleigh distribution % (which is for example: sqrt(abs(randn)^2+abs(randn)^2)) % fit_ML_laplace - fit laplace distribution % fit_ML_log_normal- fit log-normal distribution % fit_ML_normal - fit normal (gaussian) distribution % % NOTE: all estimators are efficient estimators. for this reason, the distribution % might be written in a different way, for example, the "Rayleigh" distribution % is given with a parameter "s" and not "s^2". % % % least squares estimators % ========================= % fit_maxwell_pdf - fits a given curve of a maxwellian distribution % fit_rayleigh_pdf - fits a given curve of a rayleigh distribution % % NOTE: these fit function are used on a histogram output which is like a sampled % distribution function. the given curve MUST be normalized, since the estimator % is trying to fit a normalized distribution function. % % % % % Multivariant Gaussian distribution % ================================== % for demo of 1
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值