-
程序只产生均值为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
-
计算方法经典算法(弦截法二分法牛顿迭代法龙贝格算法)
计算方法经典算法(弦截法二分法牛顿迭代法龙贝格算法)-classic calculation algorithm (xianjie Act dichotomy Newton Romberg algorithm)
- 2022-04-07 16:00:07下载
- 积分:1
-
一个能处理实的四则运算的程序,实现语言C++,支持嵌套括号,输入表达式,输出结果...
一个能处理实的四则运算的程序,实现语言C++,支持嵌套括号,输入表达式,输出结果-A program which could accomplish four arithmetic operation of real numbers, Language used is C++.
- 2022-01-26 17:43:05下载
- 积分:1
-
分流院子算法
这是调车作业的院子里表达式求值算法 !!表达式转换成后缀 & 然后评估使用堆栈和队列 !!
- 2022-02-04 05:16:55下载
- 积分:1
-
最优化计算方法常用程序集
包括了一维最优化算法 如:0.618法、分数法、二次差值法、三次插值法等源代码
还包括了无约束最优化部分的 共轭梯度法、DFP变尺度法(用导数或者用差分代替导数)、阻尼最小二乘法、鲍威尔法、模式搜索法、单纯性法等程序源代码
其次,约束最优化部分,提供了混合罚函数法(DFP),混合罚函数法(POWELL),综合约束函数双下降法、可变容差法、复合形法、网格法、随机实验法、解线性规划的单纯型法等等方法的源代码。
- 2022-07-08 03:25:11下载
- 积分:1
-
这是一个分治法应用的又一个例子,利用分治技术,做大整数乘法,尤其是几百位数以上的乘法,比一般的方法快很多,仅次于快速傅立叶变换....
这是一个分治法应用的又一个例子,利用分治技术,做大整数乘法,尤其是几百位数以上的乘法,比一般的方法快很多,仅次于快速傅立叶变换.-This is a partition of the application also an example of the use of the partition, bigger integer multiplication, especially above the median of hundreds of multiplication, than the much faster after the Fast Fourier Transform.
- 2022-02-01 00:49:28下载
- 积分:1
-
用数值积分算法实现C++语言的程序
此程序为C与语言编写的数值积分算法-procedure for the C language with the numerical integration algorithm
- 2022-05-25 12:34:11下载
- 积分:1
-
TI DSP TMS320F280x PWM定时器例程。
TI DSP TMS320F280x PWM定时器例程。-TI DSP TMS320F280x PWM timer routines.
- 2022-03-24 13:20:52下载
- 积分:1
-
四次及四次以下多项式拟和程序,可在c或c++环境下运行
四次及四次以下多项式拟和程序,可在c或c++环境下运行-Polynomial fit arithmetic witch could been run in C or C++ environment
- 2022-09-13 23:05:03下载
- 积分:1
-
c语言求解四阶龙格库塔法的算法源代码,例子:某一地区的病菌传染,三种人员的人数的状态方程,即可能受传染的人数x1,已被传染的病的人数x2,及已治愈的人数x3,并...
c语言求解四阶龙格库塔法的算法源代码,例子:某一地区的病菌传染,三种人员的人数的状态方程,即可能受传染的人数x1,已被传染的病的人数x2,及已治愈的人数x3,并假设他们是因接触而传染。-c language for solving fourth-order Runge-Kutta method algorithm source code, example: a certain area of the bacteria infection, the number three state equation, which may be the number of infected x1, has been the number of disease-borne x2, and the number of people have been successfully cured x3, and assuming they are due to exposure and infection.
- 2022-02-26 07:56:30下载
- 积分:1