找回密码
 注册
Simdroid-非首页
查看: 117|回复: 2

急求:含不可积积分的非线性拟合!!

[复制链接]
发表于 2012-2-16 16:59:11 | 显示全部楼层 |阅读模式 来自 安徽芜湖
a=160.3;
b=4.15;
y=[0 15.15 43.94 63.63 65.15 103.02 101.51 113.63 131.05 144.68 172.73 181.82 193.18 196.97 203.03 209.09 218.18 224.24 225.75];
n=[1 0.93 0.84 0.81 0.80 0.74 0.73 0.71 0.69 0.68 0.66 0.65 0.64 0.64 0.64 0.63 0.62 0.62 0.61];


积分下限:1,上限:n。
想拟合参数:c和k
求高手帮忙解决,不胜感激!!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2012-2-18 22:29:23 | 显示全部楼层 来自 山东青岛
Simdroid开发平台
本帖最后由 liuyalong008 于 2012-2-18 22:30 编辑

fit or nlinfit is not compatible with quad, so turning to primal numerical intergral formula maybe a soluble way
  1. function f=nlinear_fit(beta,x)
  2. a=160.3;
  3. b=4.15;
  4. f=zeros(1,length(x));
  5. interval=zeros(length(x),100);
  6. for j=1:length(x)
  7.    interval(j,:)=linspace(1,x(j),100);
  8.    h=interval(j,2)-interval(j,1);
  9.     for i=1:100
  10.       f(j)=f(j)+ interval(j,i).^(-beta(1)-1).*...
  11.           exp((b-beta(1))./(beta(2)).*(1-interval(j,i).^beta(2)));  
  12.     end
  13.     f(j)=f(j)*(x(j)~=1);
  14. end
  15. f=-a.*f;   
复制代码


评分

1

查看全部评分

回复 不支持

使用道具 举报

 楼主| 发表于 2012-2-21 09:58:17 | 显示全部楼层 来自 安徽芜湖
非常感谢!!!!
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-7-8 07:39 , Processed in 0.033515 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表