-
Bayes的matlab实现
自己写的一个Bayes分类器的matlab程序,比较简单。
使用方法
>> [ train_x, train_y ] = readdata("train_data.txt" );
>> [ test_x, test_y ] = readdata("test_data.txt" );
>> [mode]=MyBayes_train( train_x, train_y);
>> [ acurracy, predict_y]=MyBayes_test( test_x, test_y, mode);
- 2022-03-09 19:08:01下载
- 积分:1
-
回溯法解N后的C++源码(Visual Stdio2010环境测试通过)
#include #include #include #include using namespace std;class Queen{ friend int nQueen(int);private: bool Place(int k); void Backtrack(int t); void Output(); int n,//皇后个数 *x;//当前解 long sum;//当前已找到的可行性方案数};bool Queen::Place(int k){ for (int j=1;jn) { sum++; Output(); } else { for (int i=1;i
- 2022-02-06 19:11:54下载
- 积分:1
-
编译原理实验LL1文法判断C语言实现
应用背景编译原理实验中的LL1文法判断,输入文法,分为可推出空判断、first集、follow集、select集的计算,最后判断是否是LL1文法。代码有注释,各模块功能齐全。关键技术用到了一些C库函数,代码还可进行精简,注重代码重用,阅读容易。
- 2022-06-18 06:44:54下载
- 积分:1
-
链表的基本操作
#include
#include
#define LEN sizeof(struct student)
/*----------------数据定义----------------------*/
//定义一个学生信息的结构体,包括学号,姓名和结构体类型的指针
struct student
{
long num; //学号
char name[128]; //姓名
struct student *next; //结构体指针
};
typedef struct student * stuNode;
int n=0; //全局变量,记录链表的长度
/*---------------函数声明---------------------*/
stuNode Create(); //创建一个新的链表 &nbs
- 2022-03-11 02:44:17下载
- 积分:1
-
从多维来画波形图
从多维来画波形图-To draw from the multi-dimensional wave
- 2022-01-25 19:55:32下载
- 积分:1
-
多目标蝙蝠优化算法
多目标蝙蝠优化算法是一类寻优精度很高的优化算法,简单实用,且易于实现,算法我已通过运行验证过,很好用,希望能够对大家有所帮助,谢谢!
- 2022-01-24 18:15:24下载
- 积分:1
-
中文分词1.0
简介 ChineseSplitter中文分词系统集成了单字(一元切分)、双字(二元切分)、词义切分等分词方法。提供很好的权重计算办法。类结构 BaseSplitter(分词基类)─SingleSplitter(一元切分)─DoubleSplitter(二元切分)─DefaultSplitter(词义切分)────NICTCLAS(中科院分词系统)KeywordsSort(关键字排序类)
- 2022-01-30 17:14:00下载
- 积分:1
-
研究生期间上《数值计算方法》课的作业,所有代码都是C语言实现并调试通过,现在上传为大家服务。这是松弛算法...
研究生期间上《数值计算方法》课的作业,所有代码都是C语言实现并调试通过,现在上传为大家服务。这是松弛算法-"numerical methods" courses of operations, are all code and the C language debugging passed, and upload to us. This is the relaxation algorithm
- 2022-02-01 14:42:50下载
- 积分:1
-
还可以,能够加快迭代的计算速度,大家用一下
还可以,能够加快迭代的计算速度,大家用一下-can to accelerate the iterative calculation speed, we spent about
- 2022-06-15 16:37:27下载
- 积分:1
-
normalizacion de documentos EN C
应用背景联合国普通阙就像para la normalizacion de documentos阙在时光在一carpeta Y Q有现在很要科莫consultas一ESOS documentos partir德ciertos Terminos科莫家狗嘎图PAñ麦酒鬣蜥字母表卡拉开大声小儿PISasdasd房间隔缺损房间隔缺损房间隔缺损DAS关键技术好的,siguiendo CON NUESTRO特马…… ;我们的计划escribimos,恩恩,compilamos Y corregimos托多斯我们误差,你当La compilacióN HAYA terminado CONéxito…… ;我们observar阙埃尔恩EL arhivo创作目的(EJ:栏目。O),EN LA不善direccióN恩的地方guardamos El CóDIGO Fuente de Nuestro prgrama的… ;Y现在ES的地方法ú一EL GCCóg++ dependiendo CuAl de los DOS utilicemos…… ;四是联合国档案馆C,abrimos尤娜consola,NOS dirigimos HACIA donde encuentran El CóDIGO Fuente y el档案馆接受过一compilar del程序Y tecleamos: ;
- 2023-02-19 09:10:03下载
- 积分:1