-
程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点...
程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点数表。在执行程序时,先生成这个表(只做一次),而后就可以任意多次地执行高斯随机数产生程序了。使用C是为了保证通用性,如果有人觉得麻烦,可以用C++做个类,把这些东西都封装进去。另外,如果有人有兴趣,也可以把它修改成任意形式分布的连续随机数产生程序,修改非常简单,这里就不提示了。-procedures have only mean of 0 and variance for a random number to produce the mean E, D variance for the random number, as long as a few random E* D on it. Gaussian random process parameters or with the parameter is used to describe a normal distribution of the float table. In the implementation process, Mr. into the table (one-off), and you can repeatedly arbitrary implementation Gaussian random number generator proceedings. The use of C is to ensure commonality, if someone finds trouble, can be used to be a Class C, all these things into account Packaging. Also, if someone is interested, can you change the form of arbitrary distribution of continuous random number generator procedure is very simple changes, I will not be sacrificed as a result.
- 2023-08-17 15:20:03下载
- 积分:1
-
用MATLAB编写的绘制稳定运动模型的代码程序,以及前面程序相关的一篇论文。请多指教。...
用MATLAB编写的绘制稳定运动模型的代码程序,以及前面程序相关的一篇论文。请多指教。-Drawing prepared by using MATLAB stable motion model code procedures, as well as in front of a paper related to the proceedings. Please advice.
- 2023-08-18 06:50:04下载
- 积分:1
-
harris角点检测代码
资源描述
C++编写harris角点检测代码,
一、Harris角点检测基本理论(要讲清楚东西太多,附录提供文档详细说明)
1.1 简略表达:
角点:最直观的印象就是在水平、竖直两个方向上变化均较大的点,即Ix、Iy都较大
边缘:仅在水平、或者仅在竖直方向有较大的变化量,即Ix和Iy只有其一较大
平坦地区:在水平、竖直方向的变化量均较小,即Ix、Iy都较小角点响应
R=det(M)-k*(trace(M)^2) (附录资料给出k=0.04~0.06,opencv指出是0.05-0.5,浮动较大)
det(M)=λ1*λ2 trace(M)=λ1+λ2
R取决于M的特征值,对于角点|R|很大,平坦的区域|R|很小,边缘的R为负值。
- 2022-07-25 06:59:05下载
- 积分:1
-
牛顿迭代法解方程组 写得比较简单 但是使用
牛顿迭代法解方程组 写得比较简单 但是使用-Newton" s iterative method solution of equations written in relatively simple, but the use of
- 2022-02-05 16:37:23下载
- 积分:1
-
The Kalman filter30 is a minimum
The Kalman filter30 is a minimum-variance filter in
which time-series measurements are incorporated recursively
into estimates of state variables it is the
optimal, Bayesian least-squares estimator for linear
dynamic systems.-The Kalman filter30 is a minimum-variance filter in
which time-series measurements are incorporated recursively
into estimates of state variables it is the
optimal, Bayesian least-squares estimator for linear
dynamic systems.
- 2023-04-25 23:25:03下载
- 积分:1
-
数组/矩阵类模板
用matrix A(8,10) 定义数组,就可以像在matlab里一样引用数组元啦!
- 2023-07-14 12:55:03下载
- 积分:1
-
条形码生成软件,根据用户输入自动检索产生条形码图像
条形码生成软件,根据用户输入自动检索产生条形码图像-Barcode generation program. It can automatically generate barcode according to user s input.
- 2022-01-26 07:32:23下载
- 积分:1
-
平面上的超声速流(有粘性边界层和激波)
应用背景程序求解完全的二维N-S方程,考虑了粘性和导热。当来流Mach数为4时,计算结果与书上的结果一致,然而,我的程序不能计算Mach数为25的情况(即书中提供的另一种工况的比较结果),经过仔细检查,我认为自己的程序没毛病,可能是书中求解步长的公式给错了(eq.(10.16) in p.457),还望大家帮助检查一下。最后还要说明的是,该章在指导你写程序时,书上有些关键地方有印刷错误,会误导你,一定要小心。参考文献:Chapter 10, Computational Fluid Dynamics, The Basics with Applications, John D. Anderson, JR. McGraw-Hill, 2002, 4
《Anderson计算流体力学入门》
关键技术 bc.f---------------------边界条件
conver.f-----------------迭代收敛判断
dynvis.f-----------------计算粘性项
mac.f--------------------MacCormack求解器
mdot.f-------------------质量守恒判断
output.f-----------------结果输出
qcx.f,qcy.f--------------计算导热项
tauxx.f,tauyy.f,tauxy.f--计
- 2022-11-13 08:55:03下载
- 积分:1
-
vehicle refueling will issue the restrictions many! I would like to think of onl...
汽车加油行驶问题 这个问题限制条件很多!我想了两天才想出一个动态规划程序!已经经过测试,是正确的!-vehicle refueling will issue the restrictions many! I would like to think of only two days a dynamic planning process! Have been tested, is correct!
- 2022-11-23 06:30:03下载
- 积分:1
-
A c++program to demonstrate Radix sorting
这是一个c++程序,演示基数按升序排序。程序通过请求数字或元素的总数来接受用户的输入。然后使用基数排序方法按升序对输入的数字进行排序。通过将代码粘贴到编译器中,运行和编译非常容易。
- 2022-05-30 08:58:36下载
- 积分:1