Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - h.3
Search - h.3 - List
In this implementation of AntNet-3.0 one could get the behavior of both algorithms through a simple #define. The implementation has been tested and works with Windows XP and MSVC6.0 and Omnetpp3.0a3-In this implementation of AntNet - 3.0 one c ould get the behavior of both algorithms throug h a simple # define. The implementation has been tested and works with Windows XP and MSVC6.0 and Omnetpp3.0a3
Date : 2008-10-13 Size : 59.32kb User : chen

. 求一元二次方程式ax2+bx+c=0的实根,如果方程没有实根,则输出有关警告信息。
2. 将例8.3程序改为下面的程序,请分析执行过程,写出运行结果。并指出由于异常处理而调用了哪些析构函数。#include <iostream.h>
于面向对象的程序设计,是一种功能强大的混合型的程序设计语言


Date : 2008-12-26 Size : 3.31kb User : genius001002

In this implementation of AntNet-3.0 one could get the behavior of both algorithms through a simple #define. The implementation has been tested and works with Windows XP and MSVC6.0 and Omnetpp3.0a3-In this implementation of AntNet- 3.0 one c ould get the behavior of both algorithms throug h a simple# define. The implementation has been tested and works with Windows XP and MSVC6.0 and Omnetpp3.0a3
Date : 2025-12-16 Size : 59kb User : chen

数独游戏:是一种源自18世纪末瑞士的数学智力拼图游戏。拼图是九宫格(即3格宽×3格高)的正方形状,每一格又细分为一个九宫格。在每一个小九宫格中,分别填上1至9的数字,让整个大九宫格每一列、每一行的数字都不重复。 数独的玩法逻辑简单,数字排列方式千变万化。不少教育者认为数独是锻炼脑筋的好方法。-Sudoku: a late 18th century from the Swiss mathematical intelligence jigsaw puzzle. Puzzle is the squares (ie, 3 cells wide × 3 grid H) of square-shaped, each divided into a fine grid squares. Small squares in each of the respective fill in the figures 1-9, so that the whole big squares in each row, each row will not repeat the figures. The logic of playing Sudoku is simple, the arrangement of the ever-changing figures. Many educators think Sudoku is a good way to exercise their brains.
Date : 2025-12-16 Size : 421kb User : zk

BP神经网络程序,C语言源代码 如下: #include "iostream.h" #include "iomanip.h" #include "stdlib.h" #include "math.h" #include "stdio.h" #include "time.h" #include "fstream.h" #define N 120 //学习样本个数 #define IN 3 //输入层神经元数目 #define HN 2 //隐层神经元数目 #define ON 2 //输出层神经元数目 #define Z 20000 //旧权值保存-》每次study的权值都保存下来 double P[IN] //单个样本输入数据 double T[ON] //单个样本教师数据 double U11[IN][HN] //输入层至第一隐层权值 double V[HN][ON] //隐层至输出层权值 double X1[HN] //第一隐层的输入 double Y[ON] //输出层的输入 double H1[HN] //第一隐层的输出 double O[ON] //输出层的输出 double YU_HN1[HN] //第一隐层的阈值 double YU_ON[ON] //输出层的阈值 double err_m[N] //第m个样本的总误差 double a //学习效率 double alpha //动量因子-BP net
Date : 2025-12-16 Size : 3kb User : 梅汉文

Write a Matlab program which solves the initial value problem y  = (xy − y2)/x2, y(1) = 2, by the order four Runge-Kutta method, over the interval [1, 3] using steps of h = 1/128. The exact solution to this problem is given by y(x) = x/(ln x + 1/2). Your program should display a plot of the Runge-Kutta solution and the exact solution on the same axes and should print out the norm of the relative error of the numerical solution. Be sure to label the x,y axes of the plot and to put a title on the plot.-Write a Matlab program which solves the initial value problem y  = (xy − y2)/x2, y(1) = 2, by the order four Runge-Kutta method, over the interval [1, 3] using steps of h = 1/128. The exact solution to this problem is given by y(x) = x/(ln x+ 1/2). Your program should display a plot of the Runge-Kutta solution and the exact solution on the same axes and should print out the norm of the relative error of the numerical solution. Be sure to label the x,y axes of the plot and to put a title on the plot.
Date : 2025-12-16 Size : 1kb User : liuzhenghao

人类必须在最短的时间内迁往月球。现有n个太空站位于地球与月球之间,且有m 艘公共交通太空船在其间来回穿梭。每个太空站可容纳无限多的人,而每艘太空船i 只可容纳H[i]个人。每艘太空船将周期性地停靠一系列的太空站,例如:(1,3,4)表示该太空船将周期性地停靠太空站134134134…。每一艘太空船从一个太空站驶往任一太空站耗时均为1。人们只能在太空船停靠太空站(或月球、地球)时上、下船。初始时所有人全在地球上,太空船全在初始站。 试设计一个算法,找出让所有人尽快地全部转移到月球上的运输方案。- Human beings must in the shortest possible time to move to the moon. N of the existing station is located between Earth and the moon, and there is public transport spacecraft m vessels shuttling back and forth in the meantime. Each station can accommodate an unlimited number of people, and i each spacecraft can accommodate H [i] of individuals. Each spacecraft will periodically call a series of space station, for example: (1,3,4) that the spacecraft docking station will be periodically 134,134,134 .... Each spacecraft a space station from a time-consuming drive to any one station are 1. One can only spacecraft docked at the space station (or the moon, the Earth) when on the ship. All of the initial full-time on Earth, the spacecraft in the initial station-wide. Try to design an algorithm to find all as soon as possible so that all transferred to the moon on the transport program.
Date : 2025-12-16 Size : 16kb User : seabird

 -s svm类型:SVM设置类型(默认0)   0 -- C-SVC   1 --v-SVC   2 – 一类SVM   3 -- e -SVR   4 -- v-SVR   -t 核函数类型:核函数设置类型(默认2)   0 – 线性:u v   1 – 多项式:(r*u v + coef0)^degree   2 – RBF函数:exp(-r|u-v|^2)   3 –sigmoid:tanh(r*u v + coef0)   -d degree:核函数中的degree设置(针对多项式核函数)(默认3)   -g r(gama):核函数中的gamma函数设置(针对多项式/rbf/sigmoid核函数)(默认1/ k)   -r coef0:核函数中的coef0设置(针对多项式/sigmoid核函数)((默认0)   -c cost:设置C-SVC,e -SVR和v-SVR的参数(损失函数)(默认1)   -n nu:设置v-SVC,一类SVM和v- SVR的参数(默认0.5)   -p p:设置e -SVR 中损失函数p的值(默认0.1)   -m cachesize:设置cache内存大小,以MB为单位(默认40)   -e eps:设置允许的终止判据(默认0.001)   -h shrinking:是否使用启发式,0或1(默认1)   -wi weight:设置第几类的参数C为weight*C(C-SVC中的C)(默认1)   -v n: n-fold交互检验模式,n为fold的个数,必须大于等于2--s svm_type : set type of SVM (default 0) 0-- C-SVC 1-- nu-SVC 2-- one-class SVM 3-- epsilon-SVR 4-- nu-SVR -t kernel_type : set type of kernel function (default 2) 0-- linear: u *v 1-- polynomial: (gamma*u *v+ coef0)^degree 2-- radial basis function: exp(-gamma*|u-v|^2) 3-- sigmoid: tanh(gamma*u *v+ coef0) 4-- precomputed kernel (kernel values in training_instance_matrix) -d degree : set degree in kernel function (default 3) -g gamma : set gamma in kernel function (default 1/k) -r coef0 : set coef0 in kernel function (default 0) -c cost : set the parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1) -n nu : set the parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5) -p epsilon : set the epsilon in loss function of epsilon-SVR (default 0.1) -m cachesize : set cache memory size in MB (default 100) -e epsilon : set tolerance of termination criterion (default 0.001) -h shrinking: whether to use the shrinking heuristics, 0 or 1 (default 1) -b
Date : 2025-12-16 Size : 17kb User : little863

需要求3个长方柱的体积,请编写一个基于对象的程序。 数据成员包括length(长)、 width(宽)、height(高)。要求用成员函数实现以下功能: 1、由键盘分别输入3个长方柱的长、宽、高; 2、计算长方柱的体积; 3、输出3个长方柱体积; 请编写程序,上机调试并运行。-Demand for the volume of 3 rectangular column, please write a object-based programs. Data members, including length (length), width (W), height (H). Require member functions to achieve the following functions: 1, 3 are input from the keyboard long rectangular column, width, height 2, calculate the volume of rectangular column 3, the output of three rectangular column volumes write the program, the Machine commissioning and operation.
Date : 2025-12-16 Size : 1kb User : 王帝

提 出了基于修正空间 时频分布( S TF D) 矩阵 的 ES P RI T算法 以实现 对宽 带线性调 频信号 的到达 角估计-Th e a l g or i t h m f o r di r e c t i o n- o f- a r r i va l o f t he wi d e ba n d c hi r p s i gna l s ba s e d 0 1 3 .ESPRI T u s i n g t he mo di f i e d s p a t i a l t i me- f r e q ue n c y ma t r i x i S pr e s e nt e d.The mod i f i e d STFD ma t r i x whi c h h as t he s i mi l ar ma t he ma t i c a l c on st r uc t i o n wi t h t he c o va r i a nc e ma t r i x c a n be ob t a i ne d wi t h t h e c r o s s W i gn e r- Vi l l e di s t r i but i o ns o f t he o ut pu t s of t he ar r a y.Unde r t he c o nd i t i on of un i f o r m l i n e a r r a y,t he mo di f i e d STFD ma t r i x c a n b e t r a n s f or me d i nt o t he ma t r i x wh i c h h a s t he pr op e r t y of r ot a t i on a l i nva r i a nc e . The n t he ESPRI T c a n be a p pl i e d t o D O A e s t i ma t i on
Date : 2025-12-16 Size : 142kb User : fjp119

本算法把二重积分当成两个一次积分,分别两次利用两次复化辛朴生公式求得 //S=h/3*(f(a)+f(b)+2*s2+4*s3)-failed to translate
Date : 2025-12-16 Size : 995kb User : gondola729

Description: 给定一段文章,请输出每个字母出现的次数。 Input: 只有一组输入数据,该数据大小<10KB。 在文章中除最后一个字符外,只有小写字母、空格和换行符,没有另外的标点、数字和大写字母等。该文章以’#’结尾。 Output: 输出格式为“C A”,C为’a’..’z’中的字母,A为出现次数,C和A之间空一格。 Sample Input: here is the input this is the article# Sample Output: a 1 b 0 c 1 d 0 e 5 f 0 g 0 h 4 i 5 j 0 k 0 l 1 m 0 n 1 o 0 p 1 q 0 r 2 s 3 t 5 u 1 v 0 w 0 x 0 y 0 z 0 -Description: for a given section of the article, please output the number of occurrences of each letter. Input: only one set of input data, the data size & lt10KB. In the article, except the last character, only lowercase letters, spaces and line breaks, no other punctuation, numbers and uppercase letters. The article in ' #' at the end. Output: Output format is " CA" , C as ' a' .. ' z' in the letters, A is the number of occurrences, C and A space between. Sample Input: here is the input this is the article# Sample Output: a 1 b 0 c 1 d 0 e 5 f 0 g 0 h 4 i 5 j 0 k 0 l 1 m 0 n 1 o 0 p 1 q 0 r 2 s 3 t 5 u 1 v 0 w 0 x 0 y 0 z 0
Date : 2025-12-16 Size : 9kb User : 沙魄郎君

读取matlab数据文件(.mat)一个库。它可以把.mat文件转换成C/C++结构体。很实用。-This is a library for reading mat file of matlab.It can convert the data of .mat file into c/c++ structure. It is usefull , and very easy to use.
Date : 2025-12-16 Size : 468kb User : 白芸

排队系统仿真,可以自定义随机数的生成。 共包括三个文件 (1)事件类定义.h文件 (2)事件类源文件.cpp (3)MM1排队系统仿真文件.cpp
Date : 2017-06-17 Size : 1.41kb User : hh24895hh24895@163.com

LDPC-PEG算法构造H矩阵源码程序,matlab源码程序 clear all; clc; %输入编码参数,m:校验节点数目,n:变量节点数目(注意码率R不一定为1/2) %构造任意码率的LDPC校验矩阵 m=input('The number of check nodes:'); n=input('The number of variable nodes:'); h=zeros(m,n); %给定变量节点度分布序列 dv=0.38354*x+0.04237*x^2+0.57409*x^3 %为了得到更好的性能,此处的度分布序列采用密度进化理论选取 dv=inline('0.38354*x+0.04237*x.^2+0.57409*x.^3','x'); %计算每个度分布的节点数 indv=quadl(dv,0,1); a2=round(n*(0.38354/2/indv)); a3=round(n*(0.04273/3/indv)); ds(1:a2)=2; ds(a2+1:a3+a2)=3;(LDPC-PEG algorithm constructs H matrix source code program, matlab source code program clear all; CLC; % Input coding parameters, m: number of check nodes, n: number of variable nodes (note that bit rate R is not necessarily 1/2) % Constructing LDPC Check Matrix with Arbitrary Bit Rate M = input ('The number of check nodes:'); N = input ('The number of variable nodes:'); H = zeros (m, n); % Given variable nodal degree distribution sequence DV = 0.38354*x+0.04237*x^2+0.57409*x^3 % In order to get better performance, the density evolution theory is used to select the degree distribution sequence. DV = inline ('0.38354 * x + 0.04237 * X. ^ 2 + 0.57409 * X. ^ 3','x'); % Calculate the number of nodes per degree distribution INDV = quadl (dv, 0, 1); A2 = round (n* (0.38354/2/indv)); A3 = round (n* (0.04273/3/indv); DS (1:a2) =2; DS (a2 + 1: A3 + a2) = 3;)
Date : 2025-12-16 Size : 1kb User : MATLAB编程
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.