aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/classmeow_1_1KD__Tree.html
blob: 1bc26e6d1cd9907426d3089b64ccc7aff704fb15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
<!-- 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&lt; Vector, Scalar &gt; 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
   &#160;<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_1KD__Tree.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classmeow_1_1KD__Tree-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">meow::KD_Tree&lt; Vector, Scalar &gt; 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 &quot;<a class="el" href="KD__Tree_8h_source.html">KD_Tree.h</a>&quot;</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&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a> &gt;&#160;</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">&#160;</td><td class="mdescRight">Custom Type: Vectors is <code>std::vector&lt;Vector&gt;</code>  <a href="#afc143e90dba569c51b6eb146ba9df7f8">More...</a><br/></td></tr>
<tr class="separator:afc143e90dba569c51b6eb146ba9df7f8"><td class="memSeparator" colspan="2">&#160;</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">&#160;</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">&#160;</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">&#160;</td></tr>
<tr class="memitem:aafecfa34e96615249e11e9ba1b85fdc7"><td class="memItemLeft" align="right" valign="top">&#160;</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">&#160;</td><td class="mdescRight">constructor, given dimension  <a href="#aafecfa34e96615249e11e9ba1b85fdc7">More...</a><br/></td></tr>
<tr class="separator:aafecfa34e96615249e11e9ba1b85fdc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ffacb6d4020cfb1c127b68f3f427ee4"><td class="memItemLeft" align="right" valign="top">&#160;</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">&#160;</td><td class="mdescRight">destructor  <a href="#a6ffacb6d4020cfb1c127b68f3f427ee4">More...</a><br/></td></tr>
<tr class="separator:a6ffacb6d4020cfb1c127b68f3f427ee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1af6def42b23b9b4acef03d32774b9e"><td class="memItemLeft" align="right" valign="top">void&#160;</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 &amp;v)</td></tr>
<tr class="memdesc:ad1af6def42b23b9b4acef03d32774b9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">將給定的Vector加到set中  <a href="#ad1af6def42b23b9b4acef03d32774b9e">More...</a><br/></td></tr>
<tr class="separator:ad1af6def42b23b9b4acef03d32774b9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb0aaa5a70a7255935d8a4326c454434"><td class="memItemLeft" align="right" valign="top">bool&#160;</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 &amp;v)</td></tr>
<tr class="memdesc:adb0aaa5a70a7255935d8a4326c454434"><td class="mdescLeft">&#160;</td><td class="mdescRight">將給定的Vector從set移除  <a href="#adb0aaa5a70a7255935d8a4326c454434">More...</a><br/></td></tr>
<tr class="separator:adb0aaa5a70a7255935d8a4326c454434"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdeb11a064dc06f80437126d6744b022"><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</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">&#160;</td></tr>
<tr class="memitem:a09bf16356618fde6d256a843b87f44b6"><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</td><td class="mdescRight">重新建樹  <a href="#a09bf16356618fde6d256a843b87f44b6">More...</a><br/></td></tr>
<tr class="separator:a09bf16356618fde6d256a843b87f44b6"><td class="memSeparator" colspan="2">&#160;</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>&#160;</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 &amp;v, size_t nearestNumber, bool compareWholeVector) const </td></tr>
<tr class="memdesc:a10e1cac9c14e047d77fb95eaf0b49bd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找  <a href="#a10e1cac9c14e047d77fb95eaf0b49bd8">More...</a><br/></td></tr>
<tr class="separator:a10e1cac9c14e047d77fb95eaf0b49bd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a586afb8e59665a951ab0a9deae2fde40"><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</td><td class="mdescRight">清空所有資料  <a href="#a586afb8e59665a951ab0a9deae2fde40">More...</a><br/></td></tr>
<tr class="separator:a586afb8e59665a951ab0a9deae2fde40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45be7cf06442b1a75902faa266950121"><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</td><td class="mdescRight">清空所有資料並重新給定維度  <a href="#a45be7cf06442b1a75902faa266950121">More...</a><br/></td></tr>
<tr class="separator:a45be7cf06442b1a75902faa266950121"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class Vector, class Scalar&gt;<br/>
class meow::KD_Tree&lt; Vector, Scalar &gt;</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&lt; </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&lt; </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 &gt;&gt; 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&lt;class Vector , class Scalar &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef std::vector&lt;<a class="el" href="classmeow_1_1Vector.html">Vector</a>&gt; <a class="el" href="classmeow_1_1KD__Tree.html">meow::KD_Tree</a>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::<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&lt;Vector&gt;</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 &amp; Destructor Documentation</h2>
<a class="anchor" id="a782840070cd90370c37d72e8a39765f9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::<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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::<a class="el" href="classmeow_1_1KD__Tree.html">KD_Tree</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::~<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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::erase </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmeow_1_1Vector.html">Vector</a> const &amp;&#160;</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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::insert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmeow_1_1Vector.html">Vector</a> const &amp;&#160;</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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::query </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmeow_1_1Vector.html">Vector</a> const &amp;&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nearestNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>compareWholeVector</em>&#160;</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&lt;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&lt;class Vector , class Scalar &gt; </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>&lt; <a class="el" href="classmeow_1_1Vector.html">Vector</a>, Scalar &gt;::reset </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</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 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>