Statistical--program.rar

  • PUDN用户
    了解作者
  • Visual Basic
    开发工具
  • 4KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 2
    下载次数
  • 2014-02-16 14:43
    上传日期
对一批采样数据进行统计分析,包括排序、分组,计算概率分布等。
Statistical--program.rar
  • Statistical analysis of the vb program.doc
    25.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622b73c53d2fbb0007ed7aa2/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b73c53d2fbb0007ed7aa2/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#32479;&#35745;&#20998;&#24067;&#31243;&#24207;<span class="_ _0"> </span><span class="ff2">VB<span class="_ _0"> </span></span>&#20195;&#30721;</div><div class="t m0 x1 h4 y3 ff2 fs0 fc0 sc0 ls0 ws0">Sub Form_Load()</div><div class="t m0 x1 h4 y4 ff2 fs0 fc0 sc0 ls0 ws0">Show</div><div class="t m0 x1 h3 y5 ff2 fs0 fc0 sc0 ls0 ws0"> '<span class="ff1">&#35828;&#26126;</span>: -----------------------------------------------------------------------------</div><div class="t m0 x1 h3 y6 ff2 fs0 fc0 sc0 ls0 ws0"> ' <span class="ff1">&#36755;&#20837;&#23631;&#24149;&#20013;&#30340;<span class="_ _0"> </span></span>130<span class="_ _0"> </span><span class="ff1">&#20010;</span>"<span class="ff1">&#25991;&#26412;&#26694;</span>"<span class="ff1">&#20013;&#30340;&#23383;&#31526;</span>,<span class="ff1">&#24050;&#32463;&#23384;&#25918;&#22312;&#23383;&#31526;&#22411;&#21464;&#37327;<span class="_ _0"> </span></span>SB(1),SB(2),....,SB(130)<span class="ff1">&#20013;</span>.</div><div class="t m0 x1 h4 y7 ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y8 ff2 fs0 fc0 sc0 ls0 ws0"> '<span class="ff1">&#20844;&#29992;&#21464;&#37327;</span>:<span class="ff1">&#25972;&#25968;&#22411;</span>:M,N,K0,K1,K2; <span class="ff1">&#23383;&#31526;&#22411;</span>:SB(141),SM;<span class="ff1">&#21452;&#31934;&#24230;&#22411;</span>:A(30,130);<span class="ff1">&#21333;&#31934;&#24230;</span>:P(200)</div><div class="t m0 x1 h4 y9 ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 ya ff2 fs0 fc0 sc0 ls0 ws0"> '<span class="ff1">&#21021;&#23398;&#32534;&#31243;&#24207;&#32773;</span>,<span class="ff1">&#21487;&#20197;&#20351;&#29992;&#36825;&#20010;&#26694;&#26550;</span>(<span class="ff1">&#24179;&#21488;</span>)<span class="ff1">&#20174;&#27492;&#22788;&#32534;&#20889;&#31243;&#24207;</span>!!!!!</div><div class="t m0 x1 h4 yb ff2 fs0 fc0 sc0 ls0 ws0"> '-----------------------------------------------------------------------------------</div><div class="t m0 x1 h4 yc ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h4 yd ff2 fs0 fc0 sc0 ls0 ws0"> <span class="_ _1"></span>Dim <span class="_ _1"></span>K As <span class="_ _1"></span>Integer<span class="_ _2"></span>,<span class="_ _3"></span> <span class="_ _3"></span>I As <span class="_ _3"></span>Integer, <span class="_ _3"></span>K1<span class="_ _3"></span> A<span class="_ _2"></span>s<span class="_ _1"></span> In<span class="_ _3"></span>teger<span class="_ _2"></span>,<span class="_ _3"></span> <span class="_ _3"></span>BA <span class="_ _2"></span>As <span class="_ _3"></span>Single,<span class="_ _3"></span> <span class="_ _3"></span>K<span class="_ _3"></span>I As <span class="_ _3"></span>Integer<span class="_ _4"></span>,<span class="_ _3"></span> <span class="_ _3"></span>J As <span class="_ _3"></span>In<span class="_ _3"></span>teger<span class="_ _2"></span>,<span class="_ _3"></span> <span class="_ _3"></span>J0<span class="_ _3"></span> A<span class="_ _2"></span>s</div><div class="t m0 x1 h4 ye ff2 fs0 fc0 sc0 ls0 ws0">Integer<span class="_ _2"></span>, N <span class="_ _2"></span>As Integer<span class="_ _2"></span>, B <span class="_ _2"></span>As Single</div><div class="t m0 x1 h4 yf ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y10 ff2 fs0 fc0 sc0 ls0 ws0"> m = V<span class="_ _5"></span>al(sb(1)): Print: Print: Print " <span class="ff1">&#21407;&#22987;&#25968;&#25454;</span>: M="; m</div><div class="t m0 x1 h4 y11 ff2 fs0 fc0 sc0 ls0 ws0"> K = 1: K1 = 1</div><div class="t m0 x1 h4 y12 ff2 fs0 fc0 sc0 ls0 ws0"> P(199) = 0</div><div class="t m0 x1 h4 y13 ff2 fs0 fc0 sc0 ls0 ws0"> Print " ";</div><div class="t m0 x1 h4 y14 ff2 fs0 fc0 sc0 ls0 ws0"> For I = 6 T<span class="_ _6"></span>o 5 + m</div><div class="t m0 x1 h4 y15 ff2 fs0 fc0 sc0 ls0 ws0"> a(1, K) = V<span class="_ _5"></span>al(sb(I)): a(2, K) = a(1, K): a(3, K) = 0: Print a(2, K);</div><div class="t m0 x1 h4 y16 ff2 fs0 fc0 sc0 ls0 ws0"> P(199) = P(199) + a(2, K)</div><div class="t m0 x1 h4 y17 ff2 fs0 fc0 sc0 ls0 ws0"> K = K + 1: K1 = K1 + 1</div><div class="t m0 x1 h4 y18 ff2 fs0 fc0 sc0 ls0 ws0"> If K1 &gt; 15 Then</div><div class="t m0 x1 h4 y19 ff2 fs0 fc0 sc0 ls0 ws0"> Print: K1 = 1: Print " ";</div><div class="t m0 x1 h4 y1a ff2 fs0 fc0 sc0 ls0 ws0"> End If</div><div class="t m0 x1 h4 y1b ff2 fs0 fc0 sc0 ls0 ws0"> Next</div><div class="t m0 x1 h3 y1c ff2 fs0 fc0 sc0 ls0 ws0"> P(199) = P(199) / m '<span class="ff1">&#22343;&#20540;</span></div><div class="t m0 x1 h4 y1d ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h4 y1e ff2 fs0 fc0 sc0 ls0 ws0"> BA<span class="_ _2"></span> = P(199): P(200) = 0</div><div class="t m0 x1 h4 y1f ff2 fs0 fc0 sc0 ls0 ws0"> For K = 1 T<span class="_ _6"></span>o m</div><div class="t m0 x1 h4 y20 ff2 fs0 fc0 sc0 ls0 ws0"> P(200) = P(200) + (a(2, K) - BA) * (a(2, K) - BA)</div><div class="t m0 x1 h4 y21 ff2 fs0 fc0 sc0 ls0 ws0"> Next</div><div class="t m0 x1 h3 y22 ff2 fs0 fc0 sc0 ls0 ws0"> P(200) = Sqr(P(200) / m) '<span class="ff1">&#26679;&#26412;&#24046;</span></div><div class="t m0 x1 h4 y23 ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h4 y24 ff2 fs0 fc0 sc0 ls0 ws0"> BA<span class="_ _2"></span> = 1: KI = 1</div><div class="t m0 x1 h4 y25 ff2 fs0 fc0 sc0 ls0 ws0"> For K = 1 T<span class="_ _6"></span>o m</div><div class="t m0 x1 h4 y26 ff2 fs0 fc0 sc0 ls0 ws0">If <span class="_ _2"></span>Abs(a(2, K) - P(199)) &gt; 2 * P(200) <span class="_ _2"></span>Then</div><div class="t m0 x1 h4 y27 ff2 fs0 fc0 sc0 ls0 ws0">P(KI) = a(2, K): BA<span class="_ _2"></span> = -1</div><div class="t m0 x1 h4 y28 ff2 fs0 fc0 sc0 ls0 ws0">KI = KI + 1</div><div class="t m0 x1 h4 y29 ff2 fs0 fc0 sc0 ls0 ws0">End If</div><div class="t m0 x1 h4 y2a ff2 fs0 fc0 sc0 ls0 ws0">Next</div><div class="t m0 x1 h4 y2b ff2 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h4 y2c ff2 fs0 fc0 sc0 ls0 ws0"> </div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 概率算法.rar
      中国数学建模-编程交流-概率算法简介,用于数学建模学习
    • 概率算法.rar
      概率算法,其中包括概率算法的简介和应用还有解释。
    • 概率算法.zip
      概率算法,matlab十大经典算法之一。数学建模常用算法,里面解释的非常清晰,读者自学可用。
    • 蒙特卡洛法计算概率潮流
      概率潮流,蒙特卡洛开率潮流,简单易懂,基础代码
    • 概率
      概率 用不同的编程语言解决计算机难题
    • 概率:Python中的概率数值
      概率数 ProbNum在Python中实现概率数值方法。 这些方法使用概率推理解决了线性代数,优化,正交和微分方程的数值问题。 这种方法捕获了由有限的计算资源和随机输入引起的不确定性。 数值(PN)的目的是量化使用难...
    • php中奖概率算法
      php 中奖概率算法 经典的概率算法,开始是从1,1000 这个概率范围内筛选第一个数是否在他的出现概率范围之内, 如果不在,则将概率空间,也就是k的值减去刚刚的那个数字的概率空间, 在本例当中就是减去100,也就是说...
    • 概率机器人课件
      概率机器人的作者塞巴斯蒂安的授课PPT,包括离散滤波,fastslam,卡尔曼滤波,粒子滤波,运动模型,感知模型,slam等等
    • 概率密度分布.zip
      可实现gamma-gamma分布和对准误差的概率密度分布函数
    • 概率统计.rar
      显示随机信号的直方图、最大值、最小值、均值。