⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readfirstline.m

📁 这是MATLAB实现的数据挖掘方面的关于关联规则的一个算法
💻 M
字号:
%-------------------------------------------------------------------------------------
%ARMADA - Association Rule Mining And Deduction Analysis
%Desciprtion:	Data Mining Tool for extraction of association rules and analysis
%					of deduction methods.
%Author& 
%Copyright: 	James Malone
%Date:			14/04/03
%Version:		1.2
%-------------------------------------------------------------------------------------

%-------------------------------------------------------------------------

%Function to read in first line of data to enable count to begin
function candidates = readFirstLine(file_data,max_length)

%Get first elements to begin comparisons - read in first line
next_elem = 1;
for j=1:(max_length)
   %Ignore if element is 0 as this is a place holder only
   if file_data(1,j) ~= 0
      candidates(next_elem,1)=file_data(1,j);
      candidates(next_elem,2)=1;
      next_elem = next_elem + 1;
   end
end

%End----------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -