-
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
-
一个高性能的比标准库自带的还好的随机数发生器,在此与各位同仁分享。...
一个高性能的比标准库自带的还好的随机数发生器,在此与各位同仁分享。-A high-performance than the standard library that comes Fortunately, the random number generator, in which colleagues share with you
- 2022-02-01 03:02:30下载
- 积分:1
-
DCT变换,产生了DCT变换
dct变换,给出了dct变换的函数,使用时只要把该文件包含即可使用。-dct transformation, has produced the dct transformation
function, when the use so long as contains this document then uses.
- 2022-02-12 23:31:58下载
- 积分:1
-
pid温度控制
应用背景
可以应用在恒温箱温度控制;
水位控制;
以及需要进行PID调节控制的场合;
关键技术改程序主要用于在恒温控制,使用PID算法进行控制,控制精度高。有需要的童鞋可以下载,用在其他控制上可以对着修改即可实现。
- 2023-09-02 17:30:03下载
- 积分:1
-
设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括:
1. 删除一个字符
2. 插入一个字符
3. 将一个字符...
设A和B是2个字符串。要用最少的字符操作将字符串A转换为字符串B。这里所说的字符操作包括:
1. 删除一个字符
2. 插入一个字符
3. 将一个字符改为另一个字符
将字符串A变换为字符串B所用的最少操作数称为A到B的编辑距离,极为d(A,B)。设计一个算法,计算任意两个字符串的编辑距离。
-Set A and B are two strings. Operation will use the least character string A is converted to a string B. Operation of characters are talking about here include: 1. Delete a character 2. Insert a character 3. Will be replaced by one character to another character will be transformed into a string A string of at least B operand used by A to B is called the edit distance is extremely d (A, B). Design an algorithm to calculate any two of the string edit distance.
- 2022-01-26 03:32:59下载
- 积分:1
-
(1)Msls分三步对系统和噪声模型进行辨识,采用脉冲序列作为辅助系统模型,用 计算输出数据 ;用原输出数据 计算 ,用递推最小二乘方法分别对系统参数和模型参数...
(1)Msls分三步对系统和噪声模型进行辨识,采用脉冲序列作为辅助系统模型,用 计算输出数据 ;用原输出数据 计算 ,用递推最小二乘方法分别对系统参数和模型参数进行估计。
(2)M.dat,wnoise1.dat分别为M和白噪声序列。Wnoise1.dat的长度为700,wnoise2.dat的长度为1000。Msls6.c为N=600的程序,Msls8.c为N=800的程序。
(3)程序运行后,生成的两个h文件为产生的脉冲响应函数。Msls6.dat为msls6.c的参数估计结果,msls8.dat为msls8.c的参数辨识结果。分别如下所示:
a1=0.906331 a2=0.160170 a3=0.025525 b1=0.704475 b2=-1.497551 c1=1.009114 c2=0.446890
a1=0.906347 a2=0.159066 a3=0.024650 b1=0.700720 b2=-1.493327 c1=1.008787 c2=0.425714
(4)由数据结果可以看出,采用msls辨识方法估计精度要比els法的估计精度差一些。尤其是噪声参数c2的估计误差不在1%以内。这是由于msls法计算上较为简便,计算上的简化就带来了估计精度上的误差。由N=600和N=800相比较,可以看出当N增大时,误差有所减小。理论上当N趋于无穷时, 。
-err
- 2022-04-16 04:46:15下载
- 积分:1
-
NVIDIA 的数学运算库,包括快速开方,浮点转整数等
NVIDIA 的数学运算库,包括快速开方,浮点转整数等-NVIDIA mathematical libraries, including rapid evolution, floating point to integer, etc.
- 2022-07-18 03:32:51下载
- 积分:1
-
believe that the process of learning C# has been a long time and just portal GUI...
相信这个程序对已经学习C#很久而刚刚入门图形界面编程的初学者有用,一个用C#做的计算器-believe that the process of learning C# has been a long time and just portal GUI Programming beginners useful, one C# do Calculator
- 2022-02-14 09:58:18下载
- 积分:1
-
画NURBS曲线
使用C#编写,在一个画图面板 上通过绘制控制点来得到NURBS曲线,并可以对曲线进行平移、缩放、旋转等操作。
- 2023-01-17 23:15:04下载
- 积分:1
-
pca算法获得数据主成分
主成分分析算法,输入数据矩阵,得到投影变换主成分,用于数据降低维度。
- 2022-12-28 07:55:03下载
- 积分:1