AdaBoost, Adaptive Boosting, is a well-known meta machine learning algorithm that was proposed by Yoav Freund and Robert Schapire. In this project there two main files 1. ADABOOST_tr.m 2. ADABOOST_te.m to traing and test a user-coded learning (classification) algorithm with AdaBoost. A demo file (demo.m) is provided that demonstrates how these two files can be used with a classifier (basic threshold classifier) for two class classification problem.
標(biāo)簽: well-known algorithm AdaBoost Adaptive
上傳時間: 2014-01-15
上傳用戶:qiaoyue
簡單的單用戶ds-cdma系統(tǒng)仿真,包含六個m文件,m序列作為擴(kuò)頻碼。
標(biāo)簽: ds-cdma 單用戶 系統(tǒng)仿真
上傳時間: 2013-11-27
上傳用戶:笨小孩
建立循環(huán)鏈表,實現(xiàn)選猴王的程序:輸入N只猴子,從第一只猴子開始報數(shù)(M),數(shù)到m的那只猴子就推出,如此循環(huán),剩下的最后一直猴子就是猴王!!
標(biāo)簽: 循環(huán)
上傳時間: 2013-12-19
上傳用戶:851197153
本代碼為編碼開關(guān)代碼,編碼開關(guān)也就是數(shù)字音響中的 360度旋轉(zhuǎn)的數(shù)字音量以及顯示器上用的(單鍵飛梭開 關(guān))等類似鼠標(biāo)滾輪的手動計數(shù)輸入設(shè)備。 我使用的編碼開關(guān)為5個引腳的,其中2個引腳為按下 轉(zhuǎn)輪開關(guān)(也就相當(dāng)于鼠標(biāo)中鍵)。另外3個引腳用來 檢測旋轉(zhuǎn)方向以及旋轉(zhuǎn)步數(shù)的檢測端。引腳分別為a,b,c b接地a,c分別接到P2.0和P2.1口并分別接兩個10K上拉 電阻,并且a,c需要分別對地接一個104的電容,否則 因為編碼開關(guān)的觸點抖動會引起輕微誤動作。本程序不 使用定時器,不占用中斷,不使用延時代碼,并對每個 細(xì)分步數(shù)進(jìn)行判斷,避免一切誤動作,性能超級穩(wěn)定。 我使用的編碼器是APLS的EC11B可以參照附件的時序圖 編碼器控制流水燈最能說明問題,下面是以一段流水 燈來演示。
標(biāo)簽: 代碼 編碼開關(guān)
上傳時間: 2017-07-03
上傳用戶:gaojiao1999
Matlab 畫三維立體圖形 The aim of geom3d library is to handle and visualize 3D geometric primitives such as points, lines, planes, polyhedra... It provides low-level functions for manipulating 3D geometric primitives, making easier the development of more complex geometric algorithms. Some features of the library are: - creation of various shapes (3D points, 3D lines, planes, polyhedra...) through an intuitive syntax. Ex: createPlane(p1, p2, p3) to create a plane through 3 points. - derivation of new shapes: intersection between 2 planes, intersection between a plane and a line, between a sphere and a line... - functions for 3D polygons and polyhedra. Polyhedra use classical vertex-faces arrays (face array contain indices of vertices), and support faces with any number of vertices. Some basic models are provided (createOctaedron, createCubeoctaedron...), as well as some computation (like faceNormal or centroid) - manipulation of planar transformation. Ex.: ROT = createRotationOx(THETA); P2 = transformPoint3d(P1, ROT); - direct drawing of shapes with specialized functions. Clipping is performed automatically for infinite shapes such as lines or rays. Ex: drawPoint3d([50 50 25; 20 70 10], 'ro'); % draw some points drawLine3d([X0 Y0 Z0 DX DY DZ]); % clip and draw straight line Some functions require the geom2d package. Additional help is provided in geom3d/Contents.m file, as well as summary files like 'points3d.m' or 'lines3d.m'.
標(biāo)簽: Matlab 畫三維立體圖形
上傳時間: 2015-11-02
上傳用戶:A1321
pn碼的產(chǎn)生,m序列,M序列,可以用于偽隨機(jī)序列的分析與學(xué)習(xí)
標(biāo)簽: 程序仿真 pn碼的產(chǎn)生 m序列 M序列
上傳時間: 2015-12-09
上傳用戶:linxiaosong
實驗源代碼 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("請輸入矩陣第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可傳遞閉包關(guān)系矩陣是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元關(guān)系的可傳遞閉包\n"); void warshall(int,int); int k , n; printf("請輸入矩陣的行數(shù) i: "); scanf("%d",&k); 四川大學(xué)實驗報告 printf("請輸入矩陣的列數(shù) j: "); scanf("%d",&n); warshall(k,n); }
上傳時間: 2016-06-27
上傳用戶:梁雪文以
參加運(yùn)動會有n個學(xué)校,學(xué)校編號為1,2,3,……,n。比賽分成m個男子項目和w個女子項目。項目編號為男子1,2……m,女子m+1,m+2……m+w。不同的項目取前五名或前三名積分;取前五名的積分分別為:7、5、3、2、1,取前三名的積分分別為:5、3、2;哪些取前五名或者取前三名由自己設(shè)計。(m<=20,n<=20) 功能要求: 1、 可以輸出各個項目的前三名或前五名的成績; 2、 能統(tǒng)計各學(xué)校的總分 3、 可以按學(xué)校編號、學(xué)校總分、男女團(tuán)體總分排序輸出 4、 可以按學(xué)校編號查詢學(xué)校某個項目的情況;可以按項目編號查詢?nèi)〉们叭蛘咔拔迕膶W(xué)校。
標(biāo)簽: 分?jǐn)?shù)
上傳時間: 2017-05-08
上傳用戶:dai48625
鏈表習(xí)題 1. 編程實現(xiàn)鏈表的基本操作函數(shù)。 (1). void CreatList(LinkList &La,int m) //依次輸入m個數(shù)據(jù),并依次建立各個元素結(jié)點,逐個插入到鏈表尾;建立帶表頭結(jié)點的單鏈表La; (2). void ListPrint(LinkList La) //將單鏈表La的數(shù)據(jù)元素從表頭到表尾依次顯示。 (3).void ListInsert (LinkList &L,int i,ElemType e){ //在帶頭結(jié)點的單鏈表L中第i個數(shù)據(jù)元素之前插入數(shù)據(jù)元素e (4). void ListDelete(LinkList &La, int n, ElemType &e) //刪除鏈表的第n個元素,并用e返回其值。 (5). int Search(LinkList L, ElemType x) //在表中查找是否存在某個元素x,如存在則返回x在表中的位置,否則返回0。 (6). int ListLength(LinkList L) //求鏈表L的表長 (7). void GetElem(LinkList L, int i, ElemType &e) //用e返回L中第i個元素的值 鏈表的結(jié)點類型定義及指向結(jié)點的指針類型定義可以參照下列代碼: typedef struct Node{ ElemType data; // 數(shù)據(jù)域 struct Node *next; // 指針域 }LNode, *LinkList;
標(biāo)簽: 單鏈表
上傳時間: 2017-11-15
上傳用戶:BIANJIAXIN
1. 編程實現(xiàn)鏈表的基本操作函數(shù)。 (1). void CreatList(LinkList &La,int m) //依次輸入m個數(shù)據(jù),并依次建立各個元素結(jié)點,逐個插入到鏈表尾;建立帶表頭結(jié)點的單鏈表La; (2). void ListPrint(LinkList La) //將單鏈表La的數(shù)據(jù)元素從表頭到表尾依次顯示。 (3).void ListInsert (LinkList &L,int i,ElemType e){ //在帶頭結(jié)點的單鏈表L中第i個數(shù)據(jù)元素之前插入數(shù)據(jù)元素e (4). void ListDelete(LinkList &La, int n, ElemType &e) //刪除鏈表的第n個元素,并用e返回其值。 (5). int Search(LinkList L, ElemType x) //在表中查找是否存在某個元素x,如存在則返回x在表中的位置,否則返回0。 (6). int ListLength(LinkList L) //求鏈表L的表長 (7). void GetElem(LinkList L, int i, ElemType &e) //用e返回L中第i個元素的值 鏈表的結(jié)點類型定義及指向結(jié)點的指針類型定義可以參照下列代碼: typedef struct Node{ ElemType data; // 數(shù)據(jù)域 struct Node *next; // 指針域 }LNode, *LinkList;
標(biāo)簽: 單鏈表
上傳時間: 2017-11-15
上傳用戶:BIANJIAXIN
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1