|
|
<!-- HTML header for doxygen 1.8.3.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Templates -- Meow: meow::VP_Tree< Vector, Scalar > Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Templates -- Meow
 <span id="projectnumber">204.13.18</span>
</div>
<div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classmeow_1_1VP__Tree.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="classmeow_1_1VP__Tree-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">meow::VP_Tree< Vector, Scalar > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>跟KD_Tree很像歐
<a href="classmeow_1_1VP__Tree.html#details">More...</a></p>
<p><code>#include "<a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>"</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a02c136810876c8713b9760aa8bb51aa4"><td class="memItemLeft" align="right" valign="top">typedef std::vector< <a class="el" href="classmeow_1_1Vector.html">Vector</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a02c136810876c8713b9760aa8bb51aa4">Vectors</a></td></tr>
<tr class="separator:a02c136810876c8713b9760aa8bb51aa4"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab611c988f5c567498d40866e9eab3851"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#ab611c988f5c567498d40866e9eab3851">VP_Tree</a> ()</td></tr>
<tr class="memdesc:ab611c988f5c567498d40866e9eab3851"><td class="mdescLeft"> </td><td class="mdescRight">constructor, with dimension = 1 <a href="#ab611c988f5c567498d40866e9eab3851">More...</a><br/></td></tr>
<tr class="separator:ab611c988f5c567498d40866e9eab3851"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1f301f751afe7baf5eafe6964c6a7a15"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a1f301f751afe7baf5eafe6964c6a7a15">VP_Tree</a> (<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> const &tree2)</td></tr>
<tr class="memdesc:a1f301f751afe7baf5eafe6964c6a7a15"><td class="mdescLeft"> </td><td class="mdescRight">constructor, 複製資料 <a href="#a1f301f751afe7baf5eafe6964c6a7a15">More...</a><br/></td></tr>
<tr class="separator:a1f301f751afe7baf5eafe6964c6a7a15"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5ce274e16a28c6ef5cac63c6e3258d8b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a5ce274e16a28c6ef5cac63c6e3258d8b">VP_Tree</a> (size_t dimension)</td></tr>
<tr class="memdesc:a5ce274e16a28c6ef5cac63c6e3258d8b"><td class="mdescLeft"> </td><td class="mdescRight">constructor, 給定dimension <a href="#a5ce274e16a28c6ef5cac63c6e3258d8b">More...</a><br/></td></tr>
<tr class="separator:a5ce274e16a28c6ef5cac63c6e3258d8b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a599a1fba89e0e5a06fa1e71c81bc5216"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a599a1fba89e0e5a06fa1e71c81bc5216">~VP_Tree</a> ()</td></tr>
<tr class="memdesc:a599a1fba89e0e5a06fa1e71c81bc5216"><td class="mdescLeft"> </td><td class="mdescRight">destructor <a href="#a599a1fba89e0e5a06fa1e71c81bc5216">More...</a><br/></td></tr>
<tr class="separator:a599a1fba89e0e5a06fa1e71c81bc5216"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afcc9734a4e012d6dfdab408d5c698905"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#afcc9734a4e012d6dfdab408d5c698905">copyFrom</a> (<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> const &tree2)</td></tr>
<tr class="memdesc:afcc9734a4e012d6dfdab408d5c698905"><td class="mdescLeft"> </td><td class="mdescRight">複製資料 <a href="#afcc9734a4e012d6dfdab408d5c698905">More...</a><br/></td></tr>
<tr class="separator:afcc9734a4e012d6dfdab408d5c698905"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2319a3995c4b6ad415a4997764e83b3f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a2319a3995c4b6ad415a4997764e83b3f">insert</a> (<a class="el" href="classmeow_1_1Vector.html">Vector</a> const &vector)</td></tr>
<tr class="memdesc:a2319a3995c4b6ad415a4997764e83b3f"><td class="mdescLeft"> </td><td class="mdescRight">將給定的Vector加到set中 <a href="#a2319a3995c4b6ad415a4997764e83b3f">More...</a><br/></td></tr>
<tr class="separator:a2319a3995c4b6ad415a4997764e83b3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa53e215a7e6daa3edfba4201602c8894"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#aa53e215a7e6daa3edfba4201602c8894">erase</a> (<a class="el" href="classmeow_1_1Vector.html">Vector</a> const &vector)</td></tr>
<tr class="memdesc:aa53e215a7e6daa3edfba4201602c8894"><td class="mdescLeft"> </td><td class="mdescRight">將給定的Vector從set移除 <a href="#aa53e215a7e6daa3edfba4201602c8894">More...</a><br/></td></tr>
<tr class="separator:aa53e215a7e6daa3edfba4201602c8894"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4688e0675080bf406a086d176c5555b9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a4688e0675080bf406a086d176c5555b9">build</a> ()</td></tr>
<tr class="memdesc:a4688e0675080bf406a086d176c5555b9"><td class="mdescLeft"> </td><td class="mdescRight">檢查至今是否有 insert/erase 被呼叫來決定是否 <code>rebuild()</code> <a href="#a4688e0675080bf406a086d176c5555b9">More...</a><br/></td></tr>
<tr class="separator:a4688e0675080bf406a086d176c5555b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa4adfa52bd1cee8703b49a5ecf906733"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#aa4adfa52bd1cee8703b49a5ecf906733">forceBuild</a> ()</td></tr>
<tr class="memdesc:aa4adfa52bd1cee8703b49a5ecf906733"><td class="mdescLeft"> </td><td class="mdescRight">重新建樹 <a href="#aa4adfa52bd1cee8703b49a5ecf906733">More...</a><br/></td></tr>
<tr class="separator:aa4adfa52bd1cee8703b49a5ecf906733"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a22db303a6318b2ef58957b22063cb591"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1VP__Tree.html#a02c136810876c8713b9760aa8bb51aa4">Vectors</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a22db303a6318b2ef58957b22063cb591">query</a> (<a class="el" href="classmeow_1_1Vector.html">Vector</a> const &vector, size_t nearestNumber, bool compareWholeVector) const </td></tr>
<tr class="memdesc:a22db303a6318b2ef58957b22063cb591"><td class="mdescLeft"> </td><td class="mdescRight">查找 <a href="#a22db303a6318b2ef58957b22063cb591">More...</a><br/></td></tr>
<tr class="separator:a22db303a6318b2ef58957b22063cb591"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac4d1a186226b2d27abce9eb71149c62c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#ac4d1a186226b2d27abce9eb71149c62c">clear</a> ()</td></tr>
<tr class="memdesc:ac4d1a186226b2d27abce9eb71149c62c"><td class="mdescLeft"> </td><td class="mdescRight">清空所有資料 <a href="#ac4d1a186226b2d27abce9eb71149c62c">More...</a><br/></td></tr>
<tr class="separator:ac4d1a186226b2d27abce9eb71149c62c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad1bffde18bc2f0fc955e78fe77333558"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#ad1bffde18bc2f0fc955e78fe77333558">reset</a> (size_t dimension)</td></tr>
<tr class="memdesc:ad1bffde18bc2f0fc955e78fe77333558"><td class="mdescLeft"> </td><td class="mdescRight">清空所有資料並重新給定維度 <a href="#ad1bffde18bc2f0fc955e78fe77333558">More...</a><br/></td></tr>
<tr class="separator:ad1bffde18bc2f0fc955e78fe77333558"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7c73bb25b40f440b48267f94fa4561ad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1VP__Tree.html#a7c73bb25b40f440b48267f94fa4561ad">operator=</a> (<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> const &tree2)</td></tr>
<tr class="memdesc:a7c73bb25b40f440b48267f94fa4561ad"><td class="mdescLeft"> </td><td class="mdescRight">same as <code>copyFrom(tree2)</code> <a href="#a7c73bb25b40f440b48267f94fa4561ad">More...</a><br/></td></tr>
<tr class="separator:a7c73bb25b40f440b48267f94fa4561ad"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template<class Vector, class Scalar><br/>
class meow::VP_Tree< Vector, Scalar ></h3>
<p>跟KD_Tree很像歐 </p>
<p><code><a class="el" href="classmeow_1_1VP__Tree.html" title="跟KD_Tree很像歐 ">VP_Tree</a></code> 用來維護由 <b>N個K維度向量所成的集合</b> , 並可於該set中查找 <b>前i個離給定向量最接近的向量*</b> . 不像 <code><a class="el" href="classmeow_1_1KD__Tree.html" title="k-dimension tree ">KD_Tree</a></code> 二分樹每次都選擇一個維度去分, 分成小的跟大的, <code><a class="el" href="classmeow_1_1VP__Tree.html" title="跟KD_Tree很像歐 ">VP_Tree</a></code> 每次選一個點, 將資料分成 離這個點近的, 跟離這個點遠的. 至於怎麼選呢...., 嘛還沒研究, 先random</p>
<p>參考資料連結:</p>
<ul>
<li><a href="http://stevehanov.ca/blog/index.php?id=130">http://stevehanov.ca/blog/index.php?id=130</a></li>
<li><a href="http://pnylab.com/pny/papers/vptree/vptree">http://pnylab.com/pny/papers/vptree/vptree</a></li>
</ul>
<h2>Template Class Operators Request </h2>
<table class="doxtable">
<tr>
<th align="right">const?</th><th align="center">Typename</th><th align="right">Operator </th><th align="left">Parameters </th><th align="center">Return Type </th><th align="left">Description </th></tr>
<tr>
<td align="right">const </td><td align="center"><a class="el" href="classmeow_1_1Vector.html" title="vector ">Vector</a></td><td align="right">operator[] </td><td align="left">(size_t <code>n</code>) </td><td align="center">Scalar </td><td align="left">取得第<code>n</code> 維度量 </td></tr>
<tr>
<td align="right">const </td><td align="center"><a class="el" href="classmeow_1_1Vector.html" title="vector ">Vector</a></td><td align="right">operator= </td><td align="left">(<a class="el" href="classmeow_1_1Vector.html" title="vector ">Vector</a> <code>v</code>) </td><td align="center"><a class="el" href="classmeow_1_1Vector.html" title="vector ">Vector</a>& </td><td align="left">copy operator </td></tr>
<tr>
<td align="right">const </td><td align="center"><a class="el" href="classmeow_1_1Vector.html" title="vector ">Vector</a></td><td align="right">operator< </td><td align="left">(<a class="el" href="classmeow_1_1Vector.html" title="vector ">Vector</a> <code>v</code>) </td><td align="center">bool </td><td align="left">權重比較 </td></tr>
<tr>
<td align="right">const </td><td align="center">Scalar</td><td align="right">'Scalar' </td><td align="left">(int <code>n</code>) </td><td align="center">Scalar </td><td align="left">建構子, </td></tr>
</table>
<p>其中一定<code>n=0or4</code> | |const | Scalar|operator* |(Scalar <code>s</code>) | Scalar | 相乘 | |const | Scalar|operator+ |(Scalar <code>s</code>) | Scalar | 相加 | |const | Scalar|operator- |(Scalar <code>s</code>) | Scalar | 相差 | |const | Scalar|operator- |( ) | Scalar | 取負號 | |const | Scalar|operator< |(Scalar <code>s</code>) | bool | 大小比較 |</p>
<dl class="section note"><dt>Note</dt><dd>: -實測結果發覺, 維度小的時候, 比起中規中矩的 <code><a class="el" href="classmeow_1_1KD__Tree.html" title="k-dimension tree ">KD_Tree</a></code>, <code><a class="el" href="classmeow_1_1VP__Tree.html" title="跟KD_Tree很像歐 ">VP_Tree</a></code> 有 <b>random</b> 於其中, 因此時間複雜度只是期望值 <code>O(logN)</code> 但是測資大到 一定程度, <code><a class="el" href="classmeow_1_1KD__Tree.html" title="k-dimension tree ">KD_Tree</a></code> 效率會一整個大幅掉下, 但 <code><a class="el" href="classmeow_1_1VP__Tree.html" title="跟KD_Tree很像歐 ">VP_Tree</a></code> 幾乎不受影響 -TODO <code><a class="el" href="classmeow_1_1VP__Tree.html#a2319a3995c4b6ad415a4997764e83b3f" title="將給定的Vector加到set中 ">insert()</a></code>, <code><a class="el" href="classmeow_1_1VP__Tree.html#aa53e215a7e6daa3edfba4201602c8894" title="將給定的Vector從set移除 ">erase()</a></code> 算是未完成功能 </dd></dl>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00051">51</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a02c136810876c8713b9760aa8bb51aa4"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="memname">
<tr>
<td class="memname">typedef std::vector<<a class="el" href="classmeow_1_1Vector.html">Vector</a>> <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1VP__Tree.html#a02c136810876c8713b9760aa8bb51aa4">Vectors</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00053">53</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="ab611c988f5c567498d40866e9eab3851"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>constructor, with dimension = 1 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00212">212</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1f301f751afe7baf5eafe6964c6a7a15"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar > const & </td>
<td class="paramname"><em>tree2</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>constructor, 複製資料 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00217">217</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5ce274e16a28c6ef5cac63c6e3258d8b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>dimension</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>constructor, 給定dimension </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00225">225</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="a599a1fba89e0e5a06fa1e71c81bc5216"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::~<a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>destructor </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00234">234</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4688e0675080bf406a086d176c5555b9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::build </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>檢查至今是否有 insert/erase 被呼叫來決定是否 <code>rebuild()</code> </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00275">275</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac4d1a186226b2d27abce9eb71149c62c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>清空所有資料 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00313">313</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="afcc9734a4e012d6dfdab408d5c698905"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a>& <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::copyFrom </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar > const & </td>
<td class="paramname"><em>tree2</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>複製資料 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00241">241</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="aa53e215a7e6daa3edfba4201602c8894"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::erase </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmeow_1_1Vector.html">Vector</a> const & </td>
<td class="paramname"><em>vector</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>將給定的Vector從set移除 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00260">260</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="aa4adfa52bd1cee8703b49a5ecf906733"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::forceBuild </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>重新建樹 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00284">284</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="a2319a3995c4b6ad415a4997764e83b3f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::insert </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmeow_1_1Vector.html">Vector</a> const & </td>
<td class="paramname"><em>vector</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>將給定的Vector加到set中 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00252">252</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="a7c73bb25b40f440b48267f94fa4561ad"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a>& <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar > const & </td>
<td class="paramname"><em>tree2</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>same as <code>copyFrom(tree2)</code> </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00330">330</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="a22db303a6318b2ef58957b22063cb591"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classmeow_1_1VP__Tree.html#a02c136810876c8713b9760aa8bb51aa4">Vectors</a> <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::query </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmeow_1_1Vector.html">Vector</a> const & </td>
<td class="paramname"><em>vector</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>nearestNumber</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>compareWholeVector</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>查找 </p>
<p>於set中找尋距離指定向量前 <code>i</code> 近的向量, 並依照由近而遠的順序排序. 如果有兩個向量<code>v1</code>,v2 距離一樣, 且 <code>cmp</code> 為<code>true</code> , 則直接依照 <code>v1<v2</code> 來決定誰在前面. 最後回傳一陣列包含所有解. </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00296">296</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<a class="anchor" id="ad1bffde18bc2f0fc955e78fe77333558"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Vector, class Scalar> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t <a class="el" href="classmeow_1_1VP__Tree.html">meow::VP_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::reset </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>dimension</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>清空所有資料並重新給定維度 </p>
<p>Definition at line <a class="el" href="VP__Tree_8h_source.html#l00323">323</a> of file <a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>meowpp/dsa/<a class="el" href="VP__Tree_8h_source.html">VP_Tree.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacemeow.html">meow</a></li><li class="navelem"><a class="el" href="classmeow_1_1VP__Tree.html">VP_Tree</a></li>
<li class="footer">Generated on Tue Jun 24 2014 03:53:32 for Templates -- Meow by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>
|