📄 ruleitem.html
字号:
<!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="RuleItem()"><!-- --></A><H3>RuleItem</H3><PRE>public <B>RuleItem</B>()</PRE><DL><DD>Constructor for an empty RuleItem<P></DL><HR><A NAME="RuleItem(weka.associations.RuleItem)"><!-- --></A><H3>RuleItem</H3><PRE>public <B>RuleItem</B>(<A HREF="../../weka/associations/RuleItem.html" title="class in weka.associations">RuleItem</A> toCopy)</PRE><DL><DD>Constructor that generates a RuleItem out of a given one<P><DT><B>Parameters:</B><DD><CODE>toCopy</CODE> - RuleItem to copy</DL><HR><A NAME="RuleItem(weka.associations.ItemSet, weka.associations.ItemSet, int, int, double[], java.util.Hashtable)"><!-- --></A><H3>RuleItem</H3><PRE>public <B>RuleItem</B>(<A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A> consequence, int genTime, int ruleSupport, double[] m_midPoints, java.util.Hashtable m_priors)</PRE><DL><DD>Constructor<P><DT><B>Parameters:</B><DD><CODE>premise</CODE> - the premise of the future RuleItem<DD><CODE>consequence</CODE> - the consequence of the future RuleItem<DD><CODE>genTime</CODE> - the time of generation of the future RuleItem<DD><CODE>ruleSupport</CODE> - support of the rule<DD><CODE>m_midPoints</CODE> - the mid poitns of the intervals<DD><CODE>m_priors</CODE> - Hashtable containing the estimated prior probablilities</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="generateRuleItem(weka.associations.ItemSet, weka.associations.ItemSet, weka.core.Instances, int, int, double[], java.util.Hashtable)"><!-- --></A><H3>generateRuleItem</H3><PRE>public <A HREF="../../weka/associations/RuleItem.html" title="class in weka.associations">RuleItem</A> <B>generateRuleItem</B>(<A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A> consequence, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, int genTime, int minRuleCount, double[] m_midPoints, java.util.Hashtable m_priors)</PRE><DL><DD>Constructs a new RuleItem if the support of the given rule is above the support threshold.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>premise</CODE> - the premise<DD><CODE>consequence</CODE> - the consequence<DD><CODE>instances</CODE> - the instances<DD><CODE>genTime</CODE> - the time of generation of the current premise and consequence<DD><CODE>minRuleCount</CODE> - the support threshold<DD><CODE>m_midPoints</CODE> - the mid points of the intervals<DD><CODE>m_priors</CODE> - the estimated priori probabilities (in a hashtable)<DT><B>Returns:</B><DD>a RuleItem if its support is above the threshold, null otherwise</DL></DD></DL><HR><A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(java.lang.Object o)</PRE><DL><DD>compares two RuleItems and allows an ordering concerning expected predictive accuracy and time of generation Note: this class has a natural ordering that is inconsistent with equals<P><DD><DL><DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - RuleItem to compare<DT><B>Returns:</B><DD>integer indicating the sort oder of the two RuleItems</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object o)</PRE><DL><DD>returns whether two RuleItems are equal<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - RuleItem to compare<DT><B>Returns:</B><DD>true if the rules are equal, false otherwise</DL></DD></DL><HR><A NAME="accuracy()"><!-- --></A><H3>accuracy</H3><PRE>public double <B>accuracy</B>()</PRE><DL><DD>Gets the expected predictive accuracy of a rule<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the expected predictive accuracy of a rule stored as a RuleItem</DL></DD></DL><HR><A NAME="premise()"><!-- --></A><H3>premise</H3><PRE>public <A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A> <B>premise</B>()</PRE><DL><DD>Gets the premise of a rule<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the premise of a rule stored as a RuleItem</DL></DD></DL><HR><A NAME="consequence()"><!-- --></A><H3>consequence</H3><PRE>public <A HREF="../../weka/associations/ItemSet.html" title="class in weka.associations">ItemSet</A> <B>consequence</B>()</PRE><DL><DD>Gets the consequence of a rule<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the consequence of a rule stored as a RuleItem</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/associations/RuleGeneration.html" title="class in weka.associations"><B>PREV CLASS</B></A> <A HREF="../../weka/associations/Tertius.html" title="class in weka.associations"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="RuleItem.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -