搜索资源列表
circle_wyb
- (1) 用浮点数定义2 个几何量m1 和m2;m2 的缺省值为0.0。 (2) 实现2个构造函数:允许用1 个参数或2个参数声明几何对象。用1 个参数r 声明 的几何对象为半径为r 的圆;用2 个参数r1 和r2 声明的几何对象为r1´ r2 的矩形。所声明 的几何对象的中心在原点。 (3) 定义计算几何对象的面积,周长和对角线长度的成员函数。 (4) 对于给定的实数r,先声明一个半径为r 的圆c1;然后声明一个c1 的外切矩形s, 接着再声明s的外接圆c2。
数理统计
- 所有数理统计知识的源代码都在此,是一本数理统计数的配套光盘.里面有各种分布类型及参数估计\\插值-all mathematical statistical knowledge of the source code here is a mathematical statistical matching CD. There are various types and the distribution parameter estimation \\ interpolation, etc.
程序 三对角阵系
- !一维导热,非稳态全隐式迭代,边界条件t1=100,t11=20 !导热率为7 module parameter1 !设置全局变量 implicit none integer i real,parameter::dt=0.01 real,parameter::err=0.000001 real,parameter::r=7 real,parameter::ta=100,tb=20 real::a(2:11)=(/(-1,i=2,10),0/) !设置三对角阵系数 rea
Hashset
- 一个拼写检查程序,用来检查你的输入的文件中的单词是否拼写错误,并给你给出可能的拼写建议。(用Hashset实现)(卡耐基梅隆大学ssd5数据结构Option Exercise4答案) 程序参数设置(第一个为要输入的词库文件,本例中是wordlist.txt, 第二个为要检查的文件,必须为txt格式,本例中用test.txt来检查)-A spelling checker to check your input file is misspelled words, and give you a p
shortest_path
- 分别用floyd 和dijkstra算法计算城市间最短路径的简单例子,地图由固定格式的文件输入,参考压缩包中的sample.txt,地图文件名要作为main参数-Floyd were Dijkstra algorithm and the shortest path between cities in the simple example, the map by a fixed format file input, reference compression package sample.txt,
SimulatedAnnealing
- Simulated Annealing (SA) is a smart (meta)-heuristic for Optimization. Given a cost function in a large search space, SA replaces the current solution by a random "nearby" solution. The nearby solution is chosen with a probability that depends on the
Classificationalgorithm
- KNN分类算法,命令行启动,从命令行参数输入文件名-KNN classification algorithm, the command line start, enter the file name from the command line parameter
Variable_KD_Tree_Algorithms_for_Spatial_Pattern_Se
- 一篇介绍并行kd tree寻优和参数选取的文章,值得一看!-Introduced a parallel kd tree optimization and parameter selection of articles, worth a visit!
EXTENDS
- C++入门实例,对继承与组合的初步应用。可以让用户选择在指定位置打印出不同的图形,如正立等腰三角形,倒立等腰三角形,矩形,正方形、菱形和多边形。图形由随机选择的*或者#组成。 请为每种图形设计一个类,这些类之间的关系可能是继承或者组合。 每个类需要能保存该图形对象的参数,改变参数的方法以及在屏幕上用字符打印该图形的方法。 程序根据用户的选择产生一个新图形的对象,为该对象设置参数并打印。 -C++ Getting Started ex
DE
- 用数组模拟递归函数,实现递归函数的简化算法,具体要求看英文描述。-We all love recursion! Don t we? Consider a three-parameter recursive function w(a, b, c): if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns: 1 if a > 20 or b > 20 or c > 20
opNums
- 编程实习作业 某一应用管理一批数据,数据可按其输入顺序号提取(例:取第二个输入数据),同时要求可按其大小顺序提取(例:取数据中第二大的数据)。有另一应用需要在原基础上为每个数据附加一个参数,此参数给出该数据与全体数据的均差(该数据与全体数据的算术平均值之差的绝对值),并且数据和均差均可按顺序号或大小顺序提取(均差顺序号与数据顺序号相同,均差大小与数据大小分别排序)。试用面向对象方法对如上应用程序设计一个类结构,给出每个类应包含的属性和方法。要求先实现第一部分功能,再实现第二部分功能,使用类的
New-Text-Document-(2)
- 用Dijkstra算法求单源最短路径 输入参量ma是距离矩阵 输出参量是一个三行n列矩阵,每列表示顶点号及顶点到源的最短距离和前顶点-With a single-source Dijkstra shortest path algorithm for getting the input parameter ma is the output parameter from the matrix is a matrix of three rows of n columns, each colum
sort
- 对数组进行排序(C++), 传入数组和数组的大小。-sort the array in C++, the parameter of the function is the array and its length.
lala
- 用遗传算法求解最短路径问题求解的遗传算法的参数设定如下: 种群大小:M = 50 最大代数:G = 1000 交叉率: = 1 c p ,交叉概率为1 能保证种群的充分进化。 变异率: = 0.1 m p , 一般而言,变异发生的可能性较小-With a genetic algorithm to solve the shortest path problem of the genetic algorithm parameter settings are as follows: p
sadsa
- 比如输入的是123,2,33,1006,12这样几个数字。 先找出最大的数字的位数是4位,再将所有 的数字变成4位数: 1230 2000 3300 1006 1200 然后进行排序: -itoa () function takes three parameters: The first argument is the number to be converted, the second parameter is to be written to convert the resu
Stimulation11111-
- 利用计算机推导出了主盐、还原剂、络合剂、pH值等主要因素与镀液稳定性及沉积速率的关联式,并借助于正交设计方法确定了最佳工艺.通过C语言编程实现了工业镀镍的计算机模拟.-Stimulation and Implementation of Technological Parameter Optimization for Chemical Nickel Plating by C language
c-program
- main函数中结构数组a中存储了5个职员的工资信息(这里称每个职员的工资信息为一条“记录”)。sift函数的形参cond接收筛选条件字符串,函数实现从s指向数组元素开始的n个元素中筛选出所有wage符合筛选条件的记录并将这些记录复制到res指向的结构数组。函数返回res数组中存储的记录数(筛选结果)。-The main function is stored in an array of structures a five staff wages (here referred to the inf
Conway
- 利用链表实现Conway生命模型,在free.txt里输入初始的图样。空格表示死亡,命令行参数为 conway.exe free.txt [n],n为繁殖代数。-Realize the conway module with linklist. present the initialize picture in free.txt. space stands for dead,* stands for alive. the command line parameter are conway.exe
VCPPinsort
- 1. 采用插入排序的方法,输入10个整数按升序排序后输出。要求编写一个通用的插入排序函数InsertSort()。它带有三个参数,第一个参数是含有n个元素的数组,这n个元素已按升序排序;第二个参数给出当前数组中元素的个数;第三个参数是要插入的整数。该函数的功能是将一个整数插入到数组中,然后进行排序。另外还需要一个用于输出数组元素的函数Print(),要求每一行输出5个元素。-A. Insertion sort, the output of input 10 integers sorted in
poly_calculate
- 一元多项式求值。用户根据提示输入多项式的最高次数n,变量x的值,以及各个参数;由程序计算多项式的值并将结果输出 -A polynomial evaluation. Follow the prompts to enter the polynomial maximum number of times n, the value of the variable x, and each parameter computing polynomial values and t