-
给出集合类的定义,可模拟实现集合的交集,并集运算,并可以插入,删除元素...
给出集合类的定义,可模拟实现集合的交集,并集运算,并可以插入,删除元素-is set class definition can be simulated to achieve the intersection and set computing, and can be inserted, deleted elements
- 2022-12-13 16:40:03下载
- 积分:1
-
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
-
水平集方法实现图像分割
这份代码是用matlab 编写的,实现图像的分割,尤其对于背景和前景灰度差不明显的图像,效果非常好,采用CV模型,也是主动轮廓模型的一种类型,本程序采用半隐式方案实现变分水平集图像分割方法中的CV模型,效果很好~~~希望对大家有所帮助
- 2022-05-21 03:20:01下载
- 积分:1
-
词法分析器
//分割符号
#define is_end(c) (c=="{"||c=="}"||c=="("||c==")"||c=="["||c=="]"||c==","||c==";")
//表达式符号
#define is_exp(c) (c=="&"||c=="|"||c=="!" || c=="=" || c=="+"||c=="-"||c=="*"||c=="/" || c=="")
//数字
#define is_num(c) (c>= "0"&&c
- 2023-01-10 16:50:04下载
- 积分:1
-
背包问题最优算法
背包问题最优算法- Knapsack question most superior algorithm
- 2022-04-17 19:40:24下载
- 积分:1
-
基于模板的圆检测算法,很好的程序,看了都说不错
基于模板的圆检测算法,很好的程序,看了都说不错-based on the template circle detection algorithms, good procedures, said good read
- 2022-04-02 08:04:45下载
- 积分:1
-
wav文件的读入,采用c语言编写,并且绘制了wav文件波形,自己编写,没有版权问题,适合于音频初学者学习使用
wav文件的读入,采用c语言编写,并且绘制了wav文件波形,完全自己编写,没有版权问题,适合于音频初学者学习使用。-wav file read using c language, and rendering the wav file waveform is entirely their own writing, there is no copyright issues, suitable for beginners to learn the use of audio.
- 2022-07-16 07:07:28下载
- 积分:1
-
栈实现算术表达式求值
资源描述
可实现小数计算,输入算术表达式的错误检测,运算流程输出等
- 2022-05-30 02:52:52下载
- 积分:1
-
STM32F103硬件IIC
应用背景
STM32F103 硬件IIC可用于AT24C02 PCF8591 和IIC电调通信,稳定性好,基本不会当机,移植方便
关键技术
用库函数写的,方便新手看懂,硬件IIC保障信号的稳定性,比模拟IO口稳定
- 2022-02-06 18:08:47下载
- 积分:1
-
GN算法java实现
这是一个经典的社团划分,采用GN算法思想,
基本上是从昨天开始吧,着手复杂网络的GN算法,整个过程包括从GML文件中提取邻接矩阵数据,GN算法的实现,模块度的计算。
(1)GML文件的读取。做GN的时候首次知道GML(Graph Model Language),GML (Graph Modelling
Language): There are many different programs that work with graphs but almost
all of them use their own file format. As a consequence, exchanging graphs
between different programs is almost impossible. Simple tasks like exchange of
data, externally reproducible results or a common benchmark suite are much
harder than neccessary.
Therefore, we have developed a new file format for
the Graphlet system: GML. GML supports attaching arbitrary information to
graphs, nodes and edges, and is therefore able to emulate almost every other
format.
从上面的英文中我们可以知道,GML是一种文件格式,试图统一大家对图结构的表达形式。这样,会很方便大家的交互,比如程序的利用。我们主要工作是从GM
- 2022-02-20 11:14:43下载
- 积分:1