资源简介
根据网格聚类中的小波变换聚类方法原理,写出小波变换聚类代码
代码片段和文件信息
%Assigns elements to cells and computes cell counts.
%Meant as a helper function; don‘t call directly unless you have a reason.
function [counts] = assign_cells(datacells weights num_cells)
%This will expand the 2D matrix into a multidimensional structure (thus
%no size() around num_cells)... num_cells is a vector.
counts = zeros(num_cells);
idxcell = num2cell(datacells 1);
countidx = sub2ind(size(counts) idxcell{:});
for countpos = 1:length(countidx)
%TODO: Vectorize.
counts(countidx(countpos)) = counts(countidx(countpos)) + weights(countpos);
end
%Low-order: use sparse. High-order: use sptensor.
%counts = sparse(counts); %Most of the counts will be 0. This saves
%memory.
end属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 771 2010-04-21 23:12 assign_cells.m
文件 1646 2010-04-20 00:49 data2grid.m
文件 1109 2011-01-29 00:00 dwtN.m
文件 555 2011-03-26 14:22 EXAMPLE_USAGE.m
文件 303 2011-01-28 23:41 fold.m
文件 785 2009-06-25 17:48 grid_wavecluster_output.m
文件 36519 2010-04-21 23:30 LICENSE.txt
文件 1299 2011-01-29 00:16 swtN.m
文件 268 2011-01-28 23:32 unfold.m
文件 645 2009-01-29 08:30 vol2features.m
文件 1525 2009-04-04 23:21 WaveCluster.m
文件 11058 2011-03-26 14:07 wavecluster_example_data.mat
文件 2416 2010-04-21 23:10 WaveCluster_Preprocess.m
- 上一篇:QT一个多界面自由切换代码
- 下一篇:catering_sale.xls
相关资源
- ntpclient的实现源代码
- STM32F103C8T6硬件I2C2成功驱动ADS1115源代
- 语音识别LD3320开发资料包含51代码
- DIR2病毒源代码(汇编语言编写)
- VC仿Windows记事本源代码
- 代码绘制的爱心表白
- CRichEditView显示行号的代码
- STM8S代码例程
- Word插入代码显示行号并高亮着色显示
- 破解source insight4.00.0096
- 蓝牙源代码应用于LINUX
- 简单好用的Nhibernate代码自动生成工具
- KUKA 编程案例讲解.ppt
- bp神经网络源代码,可直接运行
- 随机森林R语言代码
- 计算机图形学 边填充算法实现代码
- 直流无刷电机方波驱动 stm32 例程代码
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- 周立功开发板ProASIC3实验-syn_FIFO代码
- IMX385驱动代码.zip
- dotnet 写字板 实验 源代码 不好请要不
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 交通咨询模拟系统完整代码
- http请求状态代码
- 数值分析所有实验代码
- 网上拍卖系统完整源代码
- 音乐代码转换软件 单片机编程时用
川公网安备 51152502000135号
评论
共有 条评论