changeruledisplay.m
来自「这是MATLAB实现的数据挖掘方面的关于关联规则的一个算法」· M 代码 · 共 32 行
M
32 行
%-------------------------------------------------------------------------------------
%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 swap the rules being displayed between those ordered by LHS
%size and those ordered by support & confidence, depending upon option chosen
function changeRuleDisplay
option = get(gcbo,'Value');
rule_box = findobj(gcbf,'Tag','rule_box');
%If option is 1 then rules displayed is ordered by support and confidence
if (option == 1)
%change rules being displayed
new_rules = get(gcbo,'UserData');
set(rule_box,'String',new_rules{1});
%Else option is rules displayed ordered by LHS size
else
%change rules being displayed
new_rules = get(gcbo,'UserData');
set(rule_box,'String',new_rules{2});
end
%End----------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?