資源簡介
根據網格聚類中的小波變換聚類方法原理,寫出小波變換聚類代碼

代碼片段和文件信息
%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
評論
共有 條評論