📄 classinput__output__manager.html
字号:
<td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Reads in one transaction from the basketfile. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>basket</em> </td><td>The basket that will be filled with the next row of the file. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 if the end of file is reached, otherwise 1; </dd></dl><p>Definition at line <a class="el" href="Input__Output__Manager_8cpp-source.html#l00027">27</a> of file <a class="el" href="Input__Output__Manager_8cpp-source.html">Input_Output_Manager.cpp</a>.<p>References <a class="el" href="Input__Output__Manager_8hpp-source.html#l00067">basket_file</a>, and <a class="el" href="common_8hpp-source.html#l00022">itemtype</a>.<p>Referenced by <a class="el" href="Input__Output__Manager_8cpp-source.html#l00059">find_frequent_items()</a>, and <a class="el" href="Apriori_8cpp-source.html#l00021">Apriori::support()</a>. </td> </tr></table><a class="anchor" name="a6" doxytag="Input_Output_Manager::rewind"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void Input_Output_Manager::rewind </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="Input__Output__Manager_8cpp-source.html#l00152">152</a> of file <a class="el" href="Input__Output__Manager_8cpp-source.html">Input_Output_Manager.cpp</a>.<p>References <a class="el" href="Input__Output__Manager_8hpp-source.html#l00067">basket_file</a>. </td> </tr></table><a class="anchor" name="a4" doxytag="Input_Output_Manager::write_out_basket"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void Input_Output_Manager::write_out_basket </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const set< <a class="el" href="common_8hpp.html#a0">itemtype</a> > & </td> <td class="mdname1" valign="top" nowrap> <em>itemset</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Writes out an itemset to the output file. <p><p>Definition at line <a class="el" href="Input__Output__Manager_8cpp-source.html#l00128">128</a> of file <a class="el" href="Input__Output__Manager_8cpp-source.html">Input_Output_Manager.cpp</a>.<p>References <a class="el" href="Input__Output__Manager_8hpp-source.html#l00080">new_code_inverse</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="Input_Output_Manager::write_out_basket_and_counter"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void Input_Output_Manager::write_out_basket_and_counter </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const set< <a class="el" href="common_8hpp.html#a0">itemtype</a> > & </td> <td class="mdname" nowrap> <em>itemset</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="common_8hpp.html#a1">countertype</a> </td> <td class="mdname" nowrap> <em>counter</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Writes out an itemset and its counter to the output file. <p><p>Definition at line <a class="el" href="Input__Output__Manager_8cpp-source.html#l00138">138</a> of file <a class="el" href="Input__Output__Manager_8cpp-source.html">Input_Output_Manager.cpp</a>.<p>References <a class="el" href="Input__Output__Manager_8hpp-source.html#l00080">new_code_inverse</a>.<p>Referenced by <a class="el" href="Apriori__Trie_8cpp-source.html#l00121">Apriori_Trie::candidate_generation_assist()</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="r0" doxytag="Input_Output_Manager::basket_file"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">ifstream& <a class="el" href="classInput__Output__Manager.html#r0">Input_Output_Manager::basket_file</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The file that contain the transactions (i.e baskets). <p><p>Definition at line <a class="el" href="Input__Output__Manager_8hpp-source.html#l00067">67</a> of file <a class="el" href="Input__Output__Manager_8hpp-source.html">Input_Output_Manager.hpp</a>.<p>Referenced by <a class="el" href="Input__Output__Manager_8cpp-source.html#l00027">read_in_a_line()</a>, and <a class="el" href="Input__Output__Manager_8cpp-source.html#l00152">rewind()</a>. </td> </tr></table><a class="anchor" name="r1" doxytag="Input_Output_Manager::new_code"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">vector<<a class="el" href="common_8hpp.html#a0">itemtype</a>> <a class="el" href="classInput__Output__Manager.html#r1">Input_Output_Manager::new_code</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The new codes of the frequent items. <p>if new_code[i] is 0, then i is not frequent, otherwise the new code of item i is new_code[i]-1. <p>Definition at line <a class="el" href="Input__Output__Manager_8hpp-source.html#l00074">74</a> of file <a class="el" href="Input__Output__Manager_8hpp-source.html">Input_Output_Manager.hpp</a>.<p>Referenced by <a class="el" href="Input__Output__Manager_8cpp-source.html#l00118">basket_recode()</a>, and <a class="el" href="Input__Output__Manager_8cpp-source.html#l00059">find_frequent_items()</a>. </td> </tr></table><a class="anchor" name="r2" doxytag="Input_Output_Manager::new_code_inverse"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">vector<<a class="el" href="common_8hpp.html#a0">itemtype</a>> <a class="el" href="classInput__Output__Manager.html#r2">Input_Output_Manager::new_code_inverse</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The inverse of new_code vector. <p>new_code_inverse[new_code[i]-1]=i if i is a frequent item. <p>Definition at line <a class="el" href="Input__Output__Manager_8hpp-source.html#l00080">80</a> of file <a class="el" href="Input__Output__Manager_8hpp-source.html">Input_Output_Manager.hpp</a>.<p>Referenced by <a class="el" href="Input__Output__Manager_8cpp-source.html#l00059">find_frequent_items()</a>, <a class="el" href="Input__Output__Manager_8cpp-source.html#l00128">write_out_basket()</a>, and <a class="el" href="Input__Output__Manager_8cpp-source.html#l00138">write_out_basket_and_counter()</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Input__Output__Manager_8hpp-source.html">Input_Output_Manager.hpp</a><li><a class="el" href="Input__Output__Manager_8cpp-source.html">Input_Output_Manager.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 11 14:48:06 2005 for APRIORI algorithm by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -