搜索资源列表
ga
- GA算法代码 function pop=initpop(popsize,chromlength) pop=round(rand(popsize,chromlength)) rand 随机产生每个单元为 {0,1} 行数为 popsize,列数为 chromlength 的矩阵, roud 对矩阵的每个单元进行圆整。这样产生的初始种群。 2.2 计算目标函数值 2.2.1 将二进制数转化为十进制数(1) 遗传算法子程序 Name: decodebinary.
Drawdata00
- 用VC产生一组随机数,根据这组数据作图 用VC产生一组随机数,根据这组数据作图-draw a graphic base on the data produce by the funtion "rand"
Find-Number
- 从1到99的映,在用电脑键盘输入一个定值之后,电脑显示与其相对应的数值-Declare an array of 10 integer elements. Use srand, rand and ctime functions to generate random numbers from 1 to 99 and fill the array. The numbers may repeat. Print the selected numbers.
rand
- 在图像中随机获取20个坐标点,很好的代码-Get 20 random coordinate points in the image, a good code
randCL
- 产生随机混沌序列的Matlab函数。可以直接调用。-Matlab .m file.rand.m.rand number can occur
randCL
- 产生混沌序列的Matlab函数。可以直接调用。效果很好-rand number functiong Logistic model can occer
qpsk_g_r-
- lear N = 10^5 EB_NO = [-1:30] liu1 = zeros(1,N) liu2 = zeros(1,N) for ii = 1:length(EB_NO) m= (2*(rand(1,N)>0.5)-1) + j*(2*(rand(1,N)>0.5)-1) s = (1/sqrt(2))*m normalization of energy to 1 n = 1/sqrt(2)*[randn(1,N) + j*rand
lab1
- lear N = 10^5 EB_NO = [-1:30] liu1 = zeros(1,N) liu2 = zeros(1,N) for ii = 1:length(EB_NO) m= (2*(rand(1,N)>0.5)-1) + j*(2*(rand(1,N)>0.5)-1) s = (1/sqrt(2))*m normalization of energy to 1 n = 1/sqrt(2)*[randn(1,N) + j*rand
lab2
- lear N = 10^5 EB_NO = [-1:30] liu1 = zeros(1,N) liu2 = zeros(1,N) for ii = 1:length(EB_NO) m= (2*(rand(1,N)>0.5)-1) + j*(2*(rand(1,N)>0.5)-1) s = (1/sqrt(2))*m normalization of energy to 1 n = 1/sqrt(2)*[randn(1,N) + j*rand
lab3
- lear N = 10^5 EB_NO = [-1:30] liu1 = zeros(1,N) liu2 = zeros(1,N) for ii = 1:length(EB_NO) m= (2*(rand(1,N)>0.5)-1) + j*(2*(rand(1,N)>0.5)-1) s = (1/sqrt(2))*m normalization of energy to 1 n = 1/sqrt(2)*[randn(1,N) + j*rand
winc-
- 申报的10个整型元素的数组。使用srand函数,兰德和ctime函数来产生随机数从1到99,并填补了数组。可重复的数字。打印选定的数字。-Declaration of the 10 element array of integers. Use the srand function, RAND and the ctime function to generate random numbers from 1-99, and fill the array. Can repeat the figures
rand
- 旅行商问题(Traveling Saleman Problem,TSP)又译为旅行推销员问题、货郎担问题,简称为TSP问题,是最基本的路线问题,该问题是在寻求单一旅行者由起点出发,通过所有给定的需求点之后,最后再回到原点的最小路径成本。最早的旅行商问题的数学规划是由Dantzig(1959)等人提出。-knapsack problem
vcbmpstar
- VC++绘制窗口的实例源码下载,星空绽放-浅墨的窗口绘制Demo源码,是毛星云VC++游戏开发笔记系列配套源码,使用了BMP图像资源为素材。牵扯到一些粒子编程,设定该粒子存在的时间为零,按粒子编号i来决定粒子在哪个象限运动,且x,y方向的移动速度随机为1—15之间的一个值,由1+rand() 15来完成。50个粒子由for循环设置完成后,我们将粒子数量设为50,代表目前有50颗星光,先在内存dc中贴上背景图片,判断粒子是否还存在,若存在,则根据其坐标(flystar[i].x,flystar[
rand
- matlab产生各种随机数,便于做数值模拟实验-matlab produce a variety of random numbers, easy to do numerical simulation
Sushushengcheng
- 素数生成 任意素数生成 效率高 控制台win32下 数组枚举rand-Prime number generation efficiency of any prime number generation console win32 array enumeration rand
openglcup
- openGL茶杯茶叶操作指导4------玻璃杯里的绿茶 一. 如操作指导(1)建立框架.见welcome2 二. 添加变量与函数并初始化 在VIEW类中加入公共变量 float tbh[6][5] //6片茶叶的角度、位置、大小 BOOL keyn //定义动画开关 在VIEW类中加入公共函数 void mytea(float x,int y) //定义绘制茶杯的函数 void tea3() //茶叶的函数 void lm() //光照和材质的函数
sort
- 本实验采用的rand函数产生随机的100个数,通过的建立列表,并调用rand函数产生随机的100个列表元素。但是没选择一种排序就会重新随机产生100数。然后就是对常见的几种数据结构的排序的主函数的的编写,根据已有的函数的代码,很快就能写出常见的折半排序,直接排序,冒泡排序,简单的选择排序,堆排序,希尔排序的主函数,最后编写一个菜单来选择通过调用各种排序的函数来实现相应的功能。-The rand function produces random 100 number used in this ex
matchec-filter-a-Monte-Carlo
- gen random bit with Matlab code, using rand()
Rand
- 生成在区间0到一的服从均匀分布的随机数,可用来进行概率计算等-Generated in the interval 0-1 uniformly distributed random numbers can be used to calculate the probability
Rand
- 系统产生随机数,通过基础的学习,掌握随机码的处理方式,对于编写大型系统的验证具有重要意义-The system generates a random number the master random code based learning approach, an important significance for the preparation of large systems validation