rulenode.java

来自「Decision Tree Decision Tree Decision Tre」· Java 代码 · 共 69 行

JAVA
69
字号
/* -------------------------------------------------------------------------- *//*                                                                            *//*                      ASSOCIATION RULE DATA MINING                          *//*                                                                            *//*                            Frans Coenen                                    *//*                                                                            *//*                        Tuesday 14 Match 2006                               *//*                         (Revision 11/10/2006)                              *//*                                                                            *//*                    Department of Computer Science                          *//*                     The University of Liverpool                            *//*                                                                            *//* -------------------------------------------------------------------------- *///package lucsKDD_ARM;/** Class for storing binary tree of ARs or CARs as appropriate. Used tobe defined as an inner class in AssocRuleMining class.@author Frans Coenen@version 11 October 2006 */public class RuleNode {    /* ------ FIELDS ------ */    /** Antecedent of AR. */    public short[] antecedent;    /** Consequent of AR. */    public short[] consequent;    /** The confidence value associate with the rule represented by this    node. <P>Same field is used if rules are ordered in some other way,    e.g. Laplace accuracy or Chi^2 values. */    public float confidenceForRule= (float) 0.0;        /** The support for a rule. <P>Again same field may be used for some    other ordering value. */    public float supportForRule= (float) 0.0;    /** Rule number, added when bin-tree containing rules is complete. */    public short ruleNumber=0;    /** Links to next node */    public RuleNode leftBranch  = null;    public RuleNode rightBranch = null;    /* ------ CONSTRUCTOR ------ */    /** Three argument constructor    @param ante the antecedent (LHS) of the AR/CAR.    @param cons the consequent (RHS) of the AR/CAR.    @param confValue the associated "confidence" value.    @param suppValue the associate "support" value.     */    public RuleNode(short[] ante, short[]cons, double confValue,                                                           double suppValue) {	antecedent        = ante;	consequent        = cons;	confidenceForRule = (float) confValue;        supportForRule    = (float) suppValue;	}    /* ------ METHODS ------ */    /* NONE */    }

⌨️ 快捷键说明

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