The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin中文论坛
 Origin 中文论坛 (Chinese Origin Forum)
 数据拟合
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

huahuagongzi2013

China
3 Posts

Posted - 05/12/2016 :  02:22:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
有一组数据,如何用origin拟合?大神帮忙!!!!!

SeanMao

China
288 Posts

Posted - 05/12/2016 :  02:46:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
把你数据贴出来,和你要拟合的公式,以及初始条件。不要贴数据图片,不能复制。

谢谢!

Sean

OriginLab Tech.
Go to Top of Page

huahuagongzi2013

China
3 Posts

Posted - 05/12/2016 :  03:38:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
0.01 0.0691
0.03 0.06658
0.05 0.06222
0.1 0.05585
0.15 0.05163
0.2 0.04716
0.25 0.04548
0.5 0.03577
拟合函数为y=aln(1+bx)+C
谢谢
Go to Top of Page

SeanMao

China
288 Posts

Posted - 05/12/2016 :  04:14:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
先要自定义拟合函数:

1. 去到菜单 Tools: Fitting Function Builder打开对话框。
2. 点击Next到Name and Type页面, 设置Function Name 为MyFunc,保持默认设置点Next.
3. 保持independent variable 为x, dependent variable 为 y, 在parameters栏填入: a,b,C
4. 点击Next按钮,在Function Body栏y=框填入:
a*ln(1+b*x)+C
5. 点一下跑的人,检查一下公式是否书写正确。
6. 点Finish完成拟合函数创建。

第二步:拟合
1. 选中两列数据,画个散点图
2. 保持图形窗口激活,去到菜单Analysis: Fitting: Nonlinear Curve Fit打开对话框
3. 选中左边栏Function Selection,选Category为User Defined, Function为MyFunc(User).
4. 点击Fit按钮,我们会发现拟合的并不好。

5. 这说明我们给定的拟合参数初始值不合理,我们需要给定另外一组合理的值。
6. 点击图上绿锁按钮,选择Change Parameters打开之前的对话框,点击Parameters选项卡,然后点一下中间位置的P字按钮回到初始参数值,双击a参数Value栏输入-1,因为从图上看这个函数是衰减趋势。再次点击Fit按钮,我们可以看到拟合现在变得好多了:


这个例子是个很好的例子展示怎么调整拟合。

希望对大家有所帮助!

Sean

OriginLab Tech.
Go to Top of Page

cc261

22 Posts

Posted - 04/14/2017 :  05:42:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin的拟合算法/功能应该改进下了,比1stOpt差多了,后者压根就不需要猜初值,免去了调试的麻烦。

代码:

Function y=a*ln(1+b*x)+C;
Data;
0.01 0.0691
0.03 0.06658
0.05 0.06222
0.1 0.05585
0.15 0.05163
0.2 0.04716
0.25 0.04548
0.5 0.03577

结果:
参数 最佳估算
---------- -------------
a -0.0161742133934136
b 17.4640590561359
c 0.0723480577940782

Origin应该加把油了,别落后太多。
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000