classinput__output__manager.html
来自「Aprior的C++实现算法」· HTML 代码 · 共 499 行 · 第 1/2 页
HTML
499 行
<tr> <td class="md" nowrap valign="top"> int Input_Output_Manager::read_in_a_line </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">set< <a class="el" href="common_8hpp.html#a0">itemtype</a> > & </td> <td class="mdname1" valign="top" nowrap> <em>basket</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>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><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#l00025">25</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#l00062">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#l00057">find_frequent_items()</a>, and <a class="el" href="MSApriori_8cpp-source.html#l00021">MSApriori::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#l00168">168</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#l00062">basket_file</a>.<p>Referenced by <a class="el" href="MSApriori_8cpp-source.html#l00068">MSApriori::MSAPRIORI_alg()</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#l00147">147</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#l00075">new_code_inverse</a>.<p>Referenced by <a class="el" href="MSApriori__Trie_8cpp-source.html#l00240">MSApriori_Trie::assoc_rule_find()</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></td> <td></td> <td class="md" nowrap>const unsigned long </td> <td class="mdname" nowrap> <em>counter</em></td> </tr> <tr> <td></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#l00156">156</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#l00075">new_code_inverse</a>.<p>Referenced by <a class="el" href="MSApriori__Trie_8cpp-source.html#l00278">MSApriori_Trie::write_content_to_file_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> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The file that contain the transactions. <p><p>Definition at line <a class="el" href="Input__Output__Manager_8hpp-source.html#l00062">62</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#l00025">read_in_a_line()</a>, and <a class="el" href="Input__Output__Manager_8cpp-source.html#l00168">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> </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#l00069">69</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#l00138">basket_recode()</a>, and <a class="el" href="Input__Output__Manager_8cpp-source.html#l00057">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> </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#l00075">75</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#l00057">find_frequent_items()</a>, <a class="el" href="Input__Output__Manager_8cpp-source.html#l00147">write_out_basket()</a>, and <a class="el" href="Input__Output__Manager_8cpp-source.html#l00156">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 Sun Jun 20 23:41:08 2004 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.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?