全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
1242 1
2009-09-05
function [p] = diguihashu(c,t) if nargin==0, c=1;t=0; end ct=[c,t]; action_ct=num2str(ct); switch(action_ct) case '1 1' p=0.12; case action_ct temp=str2num(action_ct); cc=temp(1);tt=temp(2); if tt==0||cc<tt p=0; else p=0.88*diguihashu(c-1,t)+0.12*diguihashu(c-1,t-1); end otherwise, error('Unkonwn acction string!'); end %测试结果: >> pct=diguihashu(12,5) pct = 0.0034
附件列表
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2009-9-28 13:07:51
hi 楼主好!!!1
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群