diff options
Diffstat (limited to 'doc/html/classmeow_1_1KD__Tree.html')
-rw-r--r-- | doc/html/classmeow_1_1KD__Tree.html | 487 |
1 files changed, 0 insertions, 487 deletions
diff --git a/doc/html/classmeow_1_1KD__Tree.html b/doc/html/classmeow_1_1KD__Tree.html deleted file mode 100644 index 1bc64fe..0000000 --- a/doc/html/classmeow_1_1KD__Tree.html +++ /dev/null @@ -1,487 +0,0 @@ -<!-- 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::KD_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">1.2.11</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_1KD__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_1KD__Tree-members.html">List of all members</a> </div> - <div class="headertitle"> -<div class="title">meow::KD_Tree< Vector, Scalar > Class Template Reference</div> </div> -</div><!--header--> -<div class="contents"> - -<p><code>k-dimension</code> tree - <a href="classmeow_1_1KD__Tree.html#details">More...</a></p> - -<p><code>#include "<a class="el" href="KD__Tree_8h_source.html">KD_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:afc143e90dba569c51b6eb146ba9df7f8"><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_1KD__Tree.html#afc143e90dba569c51b6eb146ba9df7f8">Vectors</a></td></tr> -<tr class="memdesc:afc143e90dba569c51b6eb146ba9df7f8"><td class="mdescLeft"> </td><td class="mdescRight">Custom Type: Vectors is <code>std::vector<Vector></code> <a href="#afc143e90dba569c51b6eb146ba9df7f8">More...</a><br/></td></tr> -<tr class="separator:afc143e90dba569c51b6eb146ba9df7f8"><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:a782840070cd90370c37d72e8a39765f9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#a782840070cd90370c37d72e8a39765f9">KD_Tree</a> ()</td></tr> -<tr class="memdesc:a782840070cd90370c37d72e8a39765f9"><td class="mdescLeft"> </td><td class="mdescRight">constructor, with dimension = 1 <a href="#a782840070cd90370c37d72e8a39765f9">More...</a><br/></td></tr> -<tr class="separator:a782840070cd90370c37d72e8a39765f9"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:aafecfa34e96615249e11e9ba1b85fdc7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#aafecfa34e96615249e11e9ba1b85fdc7">KD_Tree</a> (size_t dimension)</td></tr> -<tr class="memdesc:aafecfa34e96615249e11e9ba1b85fdc7"><td class="mdescLeft"> </td><td class="mdescRight">constructor, given dimension <a href="#aafecfa34e96615249e11e9ba1b85fdc7">More...</a><br/></td></tr> -<tr class="separator:aafecfa34e96615249e11e9ba1b85fdc7"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a6ffacb6d4020cfb1c127b68f3f427ee4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#a6ffacb6d4020cfb1c127b68f3f427ee4">~KD_Tree</a> ()</td></tr> -<tr class="memdesc:a6ffacb6d4020cfb1c127b68f3f427ee4"><td class="mdescLeft"> </td><td class="mdescRight">destructor <a href="#a6ffacb6d4020cfb1c127b68f3f427ee4">More...</a><br/></td></tr> -<tr class="separator:a6ffacb6d4020cfb1c127b68f3f427ee4"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:ad1af6def42b23b9b4acef03d32774b9e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#ad1af6def42b23b9b4acef03d32774b9e">insert</a> (<a class="el" href="classmeow_1_1Vector.html">Vector</a> const &v)</td></tr> -<tr class="memdesc:ad1af6def42b23b9b4acef03d32774b9e"><td class="mdescLeft"> </td><td class="mdescRight">將給定的Vector加到set中 <a href="#ad1af6def42b23b9b4acef03d32774b9e">More...</a><br/></td></tr> -<tr class="separator:ad1af6def42b23b9b4acef03d32774b9e"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:adb0aaa5a70a7255935d8a4326c454434"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#adb0aaa5a70a7255935d8a4326c454434">erase</a> (<a class="el" href="classmeow_1_1Vector.html">Vector</a> const &v)</td></tr> -<tr class="memdesc:adb0aaa5a70a7255935d8a4326c454434"><td class="mdescLeft"> </td><td class="mdescRight">將給定的Vector從set移除 <a href="#adb0aaa5a70a7255935d8a4326c454434">More...</a><br/></td></tr> -<tr class="separator:adb0aaa5a70a7255935d8a4326c454434"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:abdeb11a064dc06f80437126d6744b022"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#abdeb11a064dc06f80437126d6744b022">build</a> ()</td></tr> -<tr class="memdesc:abdeb11a064dc06f80437126d6744b022"><td class="mdescLeft"> </td><td class="mdescRight">檢查至今是否有 insert/erase 被呼叫來決定是否 <code>rebuild()</code> <a href="#abdeb11a064dc06f80437126d6744b022">More...</a><br/></td></tr> -<tr class="separator:abdeb11a064dc06f80437126d6744b022"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a09bf16356618fde6d256a843b87f44b6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#a09bf16356618fde6d256a843b87f44b6">forceBuild</a> ()</td></tr> -<tr class="memdesc:a09bf16356618fde6d256a843b87f44b6"><td class="mdescLeft"> </td><td class="mdescRight">重新建樹 <a href="#a09bf16356618fde6d256a843b87f44b6">More...</a><br/></td></tr> -<tr class="separator:a09bf16356618fde6d256a843b87f44b6"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a10e1cac9c14e047d77fb95eaf0b49bd8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmeow_1_1KD__Tree.html#afc143e90dba569c51b6eb146ba9df7f8">Vectors</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#a10e1cac9c14e047d77fb95eaf0b49bd8">query</a> (<a class="el" href="classmeow_1_1Vector.html">Vector</a> const &v, size_t nearestNumber, bool compareWholeVector) const </td></tr> -<tr class="memdesc:a10e1cac9c14e047d77fb95eaf0b49bd8"><td class="mdescLeft"> </td><td class="mdescRight">查找 <a href="#a10e1cac9c14e047d77fb95eaf0b49bd8">More...</a><br/></td></tr> -<tr class="separator:a10e1cac9c14e047d77fb95eaf0b49bd8"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a586afb8e59665a951ab0a9deae2fde40"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#a586afb8e59665a951ab0a9deae2fde40">clear</a> ()</td></tr> -<tr class="memdesc:a586afb8e59665a951ab0a9deae2fde40"><td class="mdescLeft"> </td><td class="mdescRight">清空所有資料 <a href="#a586afb8e59665a951ab0a9deae2fde40">More...</a><br/></td></tr> -<tr class="separator:a586afb8e59665a951ab0a9deae2fde40"><td class="memSeparator" colspan="2"> </td></tr> -<tr class="memitem:a45be7cf06442b1a75902faa266950121"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmeow_1_1KD__Tree.html#a45be7cf06442b1a75902faa266950121">reset</a> (size_t dimension)</td></tr> -<tr class="memdesc:a45be7cf06442b1a75902faa266950121"><td class="mdescLeft"> </td><td class="mdescRight">清空所有資料並重新給定維度 <a href="#a45be7cf06442b1a75902faa266950121">More...</a><br/></td></tr> -<tr class="separator:a45be7cf06442b1a75902faa266950121"><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::KD_Tree< Vector, Scalar ></h3> - -<p><code>k-dimension</code> tree </p> -<p>全名k-dimension tree, 用來維護由<b>N個K維度向量所成的集合</b>, 並可於該set中查找 <b>前i個離給定向量最接近的向量</b> </p> -<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">bool </td><td align="left">權重比較 </td></tr> -<tr> -<td align="right">const </td><td align="center">Scalar </td><td align="right">operator* </td><td align="left">(Scalar <code>s</code>) </td><td align="center">Scalar </td><td align="left">相乘 </td></tr> -<tr> -<td align="right">const </td><td align="center">Scalar </td><td align="right">operator+ </td><td align="left">(Scalar <code>s</code>) </td><td align="center">Scalar </td><td align="left">相加 </td></tr> -<tr> -<td align="right">const </td><td align="center">Scalar </td><td align="right">operator- </td><td align="left">(Scalar <code>s</code>) </td><td align="center">Scalar </td><td align="left">相差 </td></tr> -<tr> -<td align="right">const </td><td align="center">Scalar </td><td align="right">operator< </td><td align="left">(Scalar <code>s</code>) </td><td align="center">bool </td><td align="left">大小比較 </td></tr> -</table> -<dl class="section note"><dt>Note</dt><dd>: 此資料結構只有在 N >> 2 <sup>K</sup> 時才比較有優勢, 當 K 逐漸變大時, 所花時間會跟暴搜沒兩樣</dd></dl> -<dl class="section author"><dt>Author</dt><dd>cat_leopard </dd></dl> - -<p>Definition at line <a class="el" href="KD__Tree_8h_source.html#l00040">40</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> -</div><h2 class="groupheader">Member Typedef Documentation</h2> -<a class="anchor" id="afc143e90dba569c51b6eb146ba9df7f8"></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_1KD__Tree.html">meow::KD_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1KD__Tree.html#afc143e90dba569c51b6eb146ba9df7f8">Vectors</a></td> - </tr> - </table> -</div><div class="memdoc"> - -<p>Custom Type: Vectors is <code>std::vector<Vector></code> </p> - -<p>Definition at line <a class="el" href="KD__Tree_8h_source.html#l00189">189</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<h2 class="groupheader">Constructor & Destructor Documentation</h2> -<a class="anchor" id="a782840070cd90370c37d72e8a39765f9"></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_1KD__Tree.html">meow::KD_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1KD__Tree.html">KD_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="KD__Tree_8h_source.html#l00192">192</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="aafecfa34e96615249e11e9ba1b85fdc7"></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_1KD__Tree.html">meow::KD_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::<a class="el" href="classmeow_1_1KD__Tree.html">KD_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, given dimension </p> - -<p>Definition at line <a class="el" href="KD__Tree_8h_source.html#l00196">196</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="a6ffacb6d4020cfb1c127b68f3f427ee4"></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_1KD__Tree.html">meow::KD_Tree</a>< <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar >::~<a class="el" href="classmeow_1_1KD__Tree.html">KD_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="KD__Tree_8h_source.html#l00201">201</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<h2 class="groupheader">Member Function Documentation</h2> -<a class="anchor" id="abdeb11a064dc06f80437126d6744b022"></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_1KD__Tree.html">meow::KD_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="KD__Tree_8h_source.html#l00231">231</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="a586afb8e59665a951ab0a9deae2fde40"></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_1KD__Tree.html">meow::KD_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="KD__Tree_8h_source.html#l00286">286</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="adb0aaa5a70a7255935d8a4326c454434"></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_1KD__Tree.html">meow::KD_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>v</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="KD__Tree_8h_source.html#l00215">215</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="a09bf16356618fde6d256a843b87f44b6"></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_1KD__Tree.html">meow::KD_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="KD__Tree_8h_source.html#l00240">240</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="ad1af6def42b23b9b4acef03d32774b9e"></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_1KD__Tree.html">meow::KD_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>v</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="KD__Tree_8h_source.html#l00207">207</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="a10e1cac9c14e047d77fb95eaf0b49bd8"></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_1KD__Tree.html#afc143e90dba569c51b6eb146ba9df7f8">Vectors</a> <a class="el" href="classmeow_1_1KD__Tree.html">meow::KD_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>v</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="KD__Tree_8h_source.html#l00263">263</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>.</p> - -</div> -</div> -<a class="anchor" id="a45be7cf06442b1a75902faa266950121"></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_1KD__Tree.html">meow::KD_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="KD__Tree_8h_source.html#l00295">295</a> of file <a class="el" href="KD__Tree_8h_source.html">KD_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="KD__Tree_8h_source.html">KD_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_1KD__Tree.html">KD_Tree</a></li> - <li class="footer">Generated on Mon Sep 8 2014 21:25:40 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> |