orderbylhs.m

来自「这是MATLAB实现的数据挖掘方面的关于关联规则的一个算法」· M 代码 · 共 28 行

M
28
字号
%-------------------------------------------------------------------------------------
%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 order rules by size of LHS part of rule
function resorted_rules = orderByLHS(order_rules)

%Convert formatted_rules into one aray of strings for-----------------
%display purposes - stored in dispRules
a=1;
%For each set of a size of LHS
for i=1:size(order_rules,2)
   %For each rule within that size set
   for j=1:size(order_rules{i},2)
      resorted_rules{a} = order_rules{i}{j}{1};
   	a = a+1;
   end
end

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

⌨️ 快捷键说明

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