📄 itemset.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Wed Sep 04 10:31:48 CDT 2002 --><TITLE>: Class ItemSet</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</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/Associator.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ItemSet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">weka.associations</FONT><BR>Class ItemSet</H2><PRE>java.lang.Object | +--<B>weka.associations.ItemSet</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD></DL><HR><DL><DT>public class <B>ItemSet</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL><P>Class for storing a set of items. Item sets are stored in a lexicographic order, which is determined by the header information of the set of instances used for generating the set of items. All methods in this class assume that item sets are stored in lexicographic order.<P><DL><DT><B>See Also: </B><DD><A HREF="../../serialized-form.html#weka.associations.ItemSet">Serialized Form</A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#m_counter">m_counter</A></B></CODE><BR> Counter for how many transactions contain this item set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#m_items">m_items</A></B></CODE><BR> The items stored as an array of of ints.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#m_totalTransactions">m_totalTransactions</A></B></CODE><BR> The total number of transactions</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#ItemSet(int)">ItemSet</A></B>(int totalTrans)</CODE><BR> Constructor</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#confidenceForRule(weka.associations.ItemSet, weka.associations.ItemSet)">confidenceForRule</A></B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence)</CODE><BR> Outputs the confidence for a rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#containedBy(weka.core.Instance)">containedBy</A></B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance)</CODE><BR> Checks if an instance contains an item set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#convictionForRule(weka.associations.ItemSet, weka.associations.ItemSet, int, int)">convictionForRule</A></B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence, int premiseCount, int consequenceCount)</CODE><BR> Outputs the conviction for a rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../weka/core/FastVector.html">FastVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#deleteItemSets(weka.core.FastVector, int, int)">deleteItemSets</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> itemSets, int minSupport, int maxSupport)</CODE><BR> Deletes all item sets that don't have minimum support.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object itemSet)</CODE><BR> Tests if two item sets are equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/FastVector.html">FastVector</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#generateRules(double, weka.core.FastVector, int)">generateRules</A></B>(double minConfidence, <A HREF="../../weka/core/FastVector.html">FastVector</A> hashtables, int numItemsInSet)</CODE><BR> Generates all rules for an item set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/FastVector.html">FastVector</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#generateRulesBruteForce(double, int, weka.core.FastVector, int, int, double)">generateRulesBruteForce</A></B>(double minMetric, int metricType, <A HREF="../../weka/core/FastVector.html">FastVector</A> hashtables, int numItemsInSet, int numTransactions, double significanceLevel)</CODE><BR> Generates all significant rules for an item set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Hashtable</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#getHashtable(weka.core.FastVector, int)">getHashtable</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> itemSets, int initialSize)</CODE><BR> Return a hashtable filled with the given item sets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#hashCode()">hashCode</A></B>()</CODE><BR> Produces a hash code for a item set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#leverageForRule(weka.associations.ItemSet, weka.associations.ItemSet, int, int)">leverageForRule</A></B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence, int premiseCount, int consequenceCount)</CODE><BR> Outputs the leverage for a rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#liftForRule(weka.associations.ItemSet, weka.associations.ItemSet, int)">liftForRule</A></B>(<A HREF="../../weka/associations/ItemSet.html">ItemSet</A> premise, <A HREF="../../weka/associations/ItemSet.html">ItemSet</A> consequence, int consequenceCount)</CODE><BR> Outputs the lift for a rule.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../weka/core/FastVector.html">FastVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/associations/ItemSet.html#mergeAllItemSets(weka.core.FastVector, int, int)">mergeAllItemSets</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> itemSets, int size, int totalTrans)</CODE><BR> Merges all item sets in the set of (k-1)-item sets
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -