-
k-均值算法 python
均值比率
试图生成速度快、 内存效率的 K-均值程序。
安装
gem来源-http://rubygems.org
sudo gem安装 k_means
如何使用
需要 "rubygems"
要求 "k_means"
数据 = [[1,1]、 [1,2],[1,1],[1000年、 1000年],[500、 500]]
kmeans = KMeans.new (数据,: 质心 = > 2)
kmeans.inspect # 使用 kmeans.view 拿到未检查数组
= > [[3,4],[0,1,2]]
自定义的质心
需要 "rubygems"
要求 "k_means"
# 您自定义的质心需要有 #position 和 #reposition 的方法
类 CustomCentroid
attr_acces
- 2022-04-28 00:29:05下载
- 积分:1
-
LL1文法分析
该代码是自己原创,参考编译原理的书,根据LL1文法判断过程编写而成,进行了多种判断,找左公因子,左递归,求first集,follow集,select集最终根据select集判断出是否为ll1文法,并且在过程中每个产生式是否能产生空,其select集,first集,follow集,均可打印出
- 2022-10-18 06:50:03下载
- 积分:1
-
列句25宫的所有组合。
每行,每列,和对角线 数字和为25。
列句25宫的所有组合。
每行,每列,和对角线 数字和为25。-sentence of 25 out of all the combinations Palace. Each line, each and diagonal figures and 25.
- 2022-01-26 18:25:40下载
- 积分:1
-
Fifty Years of Shannon Theory
应用背景
Fifty Years of Shannon Theory:
A brief chronicle is given of the historical development
of the central problems in the theory of fundamental limits
of data compression and reliable communication.
关键技术Shannon’s A mathematical theory of communication”published in July and October of 1948 is
the Magna Carta of the information age. Shannon’s discoveryof the fundamental laws of data compression and transmission marks the birth of Information Theory. A unifying theory with profound intersections with Probability, Statistics, Computer Science, and other fields, Information Theory continues to set the stage for the development of communications, data storage
and processing, and other information technologies.
- 2022-02-13 17:00:08下载
- 积分:1
-
这是我的毕业设计,所以我认为人们还是习惯写的,所以,我何…
这个是我的毕业设计做的我觉得对大家还是有写用的,所以我给打击看看希望大家也给点意见。-this is my graduation design so I think people are still used to write, So, I hope to see you blow also points.
- 2023-06-18 20:20:03下载
- 积分:1
-
数学计算程序,共轭梯度算法,用C语言编写,用于优化问题的计算。...
数学计算程序,共轭梯度算法,用C语言编写,用于优化问题的计算。-Mathematical procedure, conjugate gradient algorithm, using C language for optimization calculations.
- 2023-01-22 08:15:03下载
- 积分:1
-
希尔伯特黄变换算法
研发一套远程心音信号监测系统,可用于居家心脏状况的自测。采用自制的心音信号采集器,对家中病人或老人的心音进行监测,借助于Visual C++6.0开发平台实现了心音信号的采集,同时对采集到的心音运用希尔伯特黄变换的方法进行去噪处理,将处理后的心音数据通过中国电信的固定网络或3G无线网络传送到护理人或有关医疗单位。
- 2022-04-20 05:38:46下载
- 积分:1
-
北大ACM试题poj 第3068题源码,很好的代码,希望对搞ACM的同学有帮助...
北大ACM试题poj 第3068题源码,很好的代码,希望对搞ACM的同学有帮助
-Peking University ACM Chapter 3068 question Question poj source code, good code, and want to help students engage in ACM
- 2022-01-28 18:40:13下载
- 积分:1
-
让任务管理器的CPU使用记录呈正弦曲线显示
通过SetProcessAffinityMask指定多核CPU中的一核来运行,然后通过GetTickCount() - startTime来控制CPU忙时的时间,从而达到
让CPU记录状态呈正弦曲线显示
- 2022-03-15 22:00:04下载
- 积分:1
-
寻最短路径算法
一个模拟游戏中最短路径的算法
从一个点,到另一个点的最短路径,中间可以设置障碍
看是如果绕过障碍获得最短路径
- 2022-12-09 16:30:03下载
- 积分:1