-
STM8S-IIC
是一个IIC通信程序,利用定时器进行扫描按键和数码管(IIC is a communication program, using the timer button for scanning and digital control)
- 2020-10-29 14:29:57下载
- 积分:1
-
k-means算法
#include
#include
#define N 11 //代表数据点的个数
#define K 3 //代表簇的个数
typedef struct
{
float x;
float y;
}Point; //代表数据点的数据结构
int center[N]; //判断每个点属于哪个簇
Point point[N] = { {2.0, 10.0},{2.0, 5.0},{8.0, 4.0},{5.0, 8.0},{7.0, 5.0},
{6.0, 4.0},{1.0, 2.0},{4.0, 9.0},{7.0, 3.0},{1.0, 3.0},
{3.0, 9.0}};
Point mean[K]; //保存每个簇的中心点
float getDistance(Point point1, Point point2);
void getMean(int center[N]);
float getE();
void cluster();
int main()
{
int i, j;
int n = 0; //统计进行了多少次聚类
float temp1; //用于存平方误差
float temp2;
printf(" 处理的数据点集合为:
");
for(i = 0; i < N; ++i)
{
- 2022-01-26 19:53:04下载
- 积分:1
-
完整通信好使电机转 - TM3 -
1.基于STM32利用DRV871驱动步进电机
2.配置SPI使STM32和DRV871通信控制步进电机
3.配置PWM控制DRV871的Step来控制步进电机的转速(1. using DRV871 to drive the stepper motor based on STM32
2. configuration SPI makes STM32 and DRV871 communication control step motor
3. configuration PWM controls the Step of DRV871 to control the speed of the stepper motor)
- 2018-01-04 14:30:58下载
- 积分:1
-
TI-C6000-optimization--guide
为TI DSP 初学者收集整理了一系列的代码优化文档,并给出一个学习这些文档的流程,在doc文档中进行了一个概述和串联,帮助初学者更好更快的进入状态。(The optimization of code documents a series of TI DSP beginners collection, optimization including C and assembly code, and presents a learning process in these documents, DOC documents made a summary and series, to help beginners to better and faster to enter the state.
)
- 2013-10-04 11:47:32下载
- 积分:1
-
Source
Source wyd 7.55, contem alguns bugs em c++ , Source wyd 7.55, contem alguns bugs em c++
- 2020-06-19 01:00:02下载
- 积分:1
-
hspice_app_manual
a good hspice material
- 2010-03-03 17:35:42下载
- 积分:1
-
C# 制作勤劳的小闹钟
C# 制作勤劳的小闹钟,将时间信息显示在textBox文本框中,textBox1.Text = DateTime.Now.ToString("HH时mm分ss秒");//在TextBox控件中显示系统时间。最终的运行效果如测试运行图所示,比较简单的小闹钟,C#新手参考。时间字体样式在代码中可以自定义,不喜欢这种时钟字体的,就自己修改吧。
- 2022-06-13 03:03:05下载
- 积分:1
-
DockPanel_2_2_Source
可以实现类似Visual Studio.NET开发环境那样的界面,并且附有源代码(Visual Studio.NET can achieve a similar kind of interface development environment, and with source code)
- 2007-12-22 18:30:14下载
- 积分:1
-
电子钟课程设计
基于stm32的电子时钟的设计,四个按键控制(Based on stm32 electronic clock design, four key controls)
- 2017-06-26 16:04:03下载
- 积分:1
-
一种UPS的数字化锁相及旁路检测和切换控制技术
UPS锁相环Matlab/simulink仿真(dpll Matlab/simulink)
- 2017-12-13 09:35:37下载
- 积分:1