-
运用粒子群计算函数的极值
应用背景
求最大值与求最小值两者转换时的修改处:
BaseStepPso:代码83行和91行
InitSwarm: 代码44行
PsoProcess: 代码
69行
关键技术
调用格式:
Scope=[ ];
[xm,on,off,fv]=PsoProcess(N,D,Scope,@InitSwarm,@BaseStepPso,@fitness,IsStep,0,M,IsPlot);
Xm:目标函数取最大值时的自变量
Fv:目标函数的最大值
on:在线性能的数据
off:离线性能的数据
N:粒子数目(一般取20-40。对于大部分的问题10个粒子已经足够可以取得好的结果,
不过对于比较难的问题或者特定类别的问
- 2022-12-27 12:25:05下载
- 积分:1
-
Connect to the database to remove stop words word weighted value
连接数据库 分词 去除停用词 计算权重值-Connect to the database to remove stop words word weighted value
- 2022-03-20 14:55:35下载
- 积分:1
-
快速幂级算法 求RSA基础
快速幂级算法 求RSA基础-rapid power-based RSA algorithm for
- 2023-01-01 04:40:10下载
- 积分:1
-
求素数,并且保存于文本文件,并且下次执行还可以接着上次的结果继续找下去
所以总有一天你会找到最大的素数……每天就像挂Q一样挂一下这个程序就行了...
求素数,并且保存于文本文件,并且下次执行还可以接着上次的结果继续找下去
所以总有一天你会找到最大的素数……每天就像挂Q一样挂一下这个程序就行了-Seek primes, and stored in a text file, and the next performance can also be followed by the last results continue to look down so that one day you will find the largest prime number ... ... the same day, just hanging Q hang about this program on the list ... ...
- 2022-03-13 09:49:31下载
- 积分:1
-
马尔可夫链,蒙特卡洛方法,数值模拟 matlab程序
马尔可夫链,蒙特卡洛方法,数值模拟 matlab程序-Markov chain Monte Carlo methods, numerical simulation procedures Matlab
- 2022-02-22 06:35:53下载
- 积分:1
-
OFDM算法FPGA实现
资源描述在cyclone 4上实现了OFDM算法,载波数64个,信源位1.024Mbit/s的PN9伪随机序列,首先4bit一组通过符号映射模块映射城16qam符号,每64个符号一组作IFFT运算,运算结果串行输出,通过数字上变频输出到DA输出
- 2023-01-03 11:20:05下载
- 积分:1
-
任意精度的数学库
任意精度的数学库 - Free precision mathematics storehouse
- 2022-01-26 03:10:09下载
- 积分:1
-
高斯消元法求逆
此矩阵用高斯消元法求二元域矩阵H的逆矩阵,此算法不需要H时满秩矩阵,对于满秩矩阵,H的逆矩阵G为[P,I],对于不满足矩阵,P的最后列为全零列,本算法适合刚进入编码领域的人,不知如何求生成矩阵,特别是当生成矩阵的为非满秩矩阵的时候可用。
- 2022-03-16 20:48:21下载
- 积分:1
-
1, one dollar three regression equations CubicMultinomialRegress.cs equation mod...
一、 一元三次回归方程 CubicMultinomialRegress.cs
方程模型为Y=a*X(3)+b*X(2)+c*X(1)+d
public override double[] buildFormula()
得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是d,c,b,a。
以后所述所有模型的系数存放均与此相同(多元线性回归方程除外)。
public override double forecast(double x)
预测函数,根据模型得到预测结果
public override double computeR2()
计算相关系数(决定系数),系数越接近1,数据越满足该模型。
-1, one dollar three regression equations CubicMultinomialRegress.cs equation model for Y = a* X (3)+ B* X (2)+ C* X (1)+ Dpublic override double [] buildFormula () get coefficient array, store order and model coefficients contrary, that is, the array is followed by the value of coefficient d, c, b, a. After all the model described in the coefficient of storage are the same (except for multiple linear regression equation). public override double forecast (double x) prediction function, according to the results of model prediction public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the dat
- 2022-01-26 07:28:21下载
- 积分:1
-
64点FFT处理器设计
资源描述这是一个用Verilog实现的基4的FFT处理器,这是一个用Verilog实现的基4的FFT处理器,这是一个用Verilog实现的基4的FFT处理器,这是一个用Verilog实现的基4的FFT处理器,这是一个用Verilog实现的基4的FFT处理器,
- 2022-08-07 19:07:56下载
- 积分:1