File: classOpenMS_1_1ClusterAnalyzer.html

package info (click to toggle)
openms 1.11.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 436,688 kB
  • ctags: 150,907
  • sloc: cpp: 387,126; xml: 71,547; python: 7,764; ansic: 2,626; php: 2,499; sql: 737; ruby: 342; sh: 325; makefile: 128
file content (474 lines) | stat: -rw-r--r-- 31,414 bytes parent folder | download
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
<HTML>
<HEAD>
<TITLE>ClusterAnalyzer Class Reference</TITLE>
<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
<LINK HREF="style_ini.css" REL="stylesheet" TYPE="text/css">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<A href="index.html">Home</A> &nbsp;&middot;
<A href="classes.html">Classes</A> &nbsp;&middot;
<A href="annotated.html">Annotated Classes</A> &nbsp;&middot;
<A href="modules.html">Modules</A> &nbsp;&middot;
<A href="functions_func.html">Members</A> &nbsp;&middot;
<A href="namespaces.html">Namespaces</A> &nbsp;&middot;
<A href="pages.html">Related Pages</A>
<HR style="height:1px; border:none; border-top:1px solid #c0c0c0;">
<!-- Generated by Doxygen 1.8.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceOpenMS.html">OpenMS</a></li><li class="navelem"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="classOpenMS_1_1ClusterAnalyzer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ClusterAnalyzer Class Reference<div class="ingroups"><a class="el" href="group__SpectraClustering.html">Clustering</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Bundles analyzing tools for a clustering (given as sequence of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s)  
 <a href="classOpenMS_1_1ClusterAnalyzer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ClusterAnalyzer_8h_source.html">OpenMS/COMPARISON/CLUSTERING/ClusterAnalyzer.h</a>&gt;</code></p>
<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:ace9f4a6b43173de5ec5264c3b17b8839"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#ace9f4a6b43173de5ec5264c3b17b8839">ClusterAnalyzer</a> ()</td></tr>
<tr class="memdesc:ace9f4a6b43173de5ec5264c3b17b8839"><td class="mdescLeft">&#160;</td><td class="mdescRight">default constructor  <a href="#ace9f4a6b43173de5ec5264c3b17b8839">More...</a><br/></td></tr>
<tr class="separator:ace9f4a6b43173de5ec5264c3b17b8839"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63800e1b364cc7683cf6c39581a57c6f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a63800e1b364cc7683cf6c39581a57c6f">ClusterAnalyzer</a> (const <a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> &amp;source)</td></tr>
<tr class="memdesc:a63800e1b364cc7683cf6c39581a57c6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">copy constructor  <a href="#a63800e1b364cc7683cf6c39581a57c6f">More...</a><br/></td></tr>
<tr class="separator:a63800e1b364cc7683cf6c39581a57c6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b12731bfcd44e23a39faca1e2a72796"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a5b12731bfcd44e23a39faca1e2a72796">~ClusterAnalyzer</a> ()</td></tr>
<tr class="memdesc:a5b12731bfcd44e23a39faca1e2a72796"><td class="mdescLeft">&#160;</td><td class="mdescRight">destructor  <a href="#a5b12731bfcd44e23a39faca1e2a72796">More...</a><br/></td></tr>
<tr class="separator:a5b12731bfcd44e23a39faca1e2a72796"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65875b284ab1d8b9c346998d5630ae47"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a65875b284ab1d8b9c346998d5630ae47">averageSilhouetteWidth</a> (const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;tree, const <a class="el" href="classOpenMS_1_1DistanceMatrix.html">DistanceMatrix</a>&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt; &amp;original)</td></tr>
<tr class="memdesc:a65875b284ab1d8b9c346998d5630ae47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to calculate the average silhouette widths for a clustering.  <a href="#a65875b284ab1d8b9c346998d5630ae47">More...</a><br/></td></tr>
<tr class="separator:a65875b284ab1d8b9c346998d5630ae47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6842fb78cfcd90d7426528978640f7a"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#ab6842fb78cfcd90d7426528978640f7a">dunnIndices</a> (const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;tree, const <a class="el" href="classOpenMS_1_1DistanceMatrix.html">DistanceMatrix</a>&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt; &amp;original, const bool tree_from_singlelinkage=false)</td></tr>
<tr class="memdesc:ab6842fb78cfcd90d7426528978640f7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to calculate Dunns indices for a clustering.  <a href="#ab6842fb78cfcd90d7426528978640f7a">More...</a><br/></td></tr>
<tr class="separator:ab6842fb78cfcd90d7426528978640f7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d3b1464ce71cbf44e55e068e154c925"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a0d3b1464ce71cbf44e55e068e154c925">cohesion</a> (const std::vector&lt; std::vector&lt; <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> &gt; &gt; &amp;clusters, const <a class="el" href="classOpenMS_1_1DistanceMatrix.html">DistanceMatrix</a>&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt; &amp;original)</td></tr>
<tr class="memdesc:a0d3b1464ce71cbf44e55e068e154c925"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to calculate the cohesions of a certain partition.  <a href="#a0d3b1464ce71cbf44e55e068e154c925">More...</a><br/></td></tr>
<tr class="separator:a0d3b1464ce71cbf44e55e068e154c925"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a299d8214ddc27b9c1dfa59d7ac593ae4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a299d8214ddc27b9c1dfa59d7ac593ae4">averagePopulationAberration</a> (<a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> cluster_quantity, std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;tree)</td></tr>
<tr class="memdesc:a299d8214ddc27b9c1dfa59d7ac593ae4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to calculate the average aberration from average population in partition resulting from a certain step in clustering.  <a href="#a299d8214ddc27b9c1dfa59d7ac593ae4">More...</a><br/></td></tr>
<tr class="separator:a299d8214ddc27b9c1dfa59d7ac593ae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ddae30375fef566e4a1f53fb43baba9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a1ddae30375fef566e4a1f53fb43baba9">cut</a> (const <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> cluster_quantity, const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;tree, std::vector&lt; std::vector&lt; <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> &gt; &gt; &amp;clusters)</td></tr>
<tr class="memdesc:a1ddae30375fef566e4a1f53fb43baba9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to calculate a partition resulting from a certain step in clustering given by the number of clusters.  <a href="#a1ddae30375fef566e4a1f53fb43baba9">More...</a><br/></td></tr>
<tr class="separator:a1ddae30375fef566e4a1f53fb43baba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab291e2f97b916d42f3c009385f75c36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#aab291e2f97b916d42f3c009385f75c36">cut</a> (const <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> cluster_quantity, const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;tree, std::vector&lt; std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &gt; &amp;subtrees)</td></tr>
<tr class="memdesc:aab291e2f97b916d42f3c009385f75c36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Method to calculate subtrees from a given tree resulting from a certain step in clustering given by the number of clusters.  <a href="#aab291e2f97b916d42f3c009385f75c36">More...</a><br/></td></tr>
<tr class="separator:aab291e2f97b916d42f3c009385f75c36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac228371cea18f2d7413fa9587af138a4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOpenMS_1_1String.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#ac228371cea18f2d7413fa9587af138a4">newickTree</a> (const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;tree, const bool include_distance=false)</td></tr>
<tr class="memdesc:ac228371cea18f2d7413fa9587af138a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the hierarchy described by a clustering tree as Newick-String.  <a href="#ac228371cea18f2d7413fa9587af138a4">More...</a><br/></td></tr>
<tr class="separator:ac228371cea18f2d7413fa9587af138a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a408835ff6fbad757825d8600e0662937"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a408835ff6fbad757825d8600e0662937">operator=</a> (const <a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> &amp;source)</td></tr>
<tr class="memdesc:a408835ff6fbad757825d8600e0662937"><td class="mdescLeft">&#160;</td><td class="mdescRight">assignment operator  <a href="#a408835ff6fbad757825d8600e0662937">More...</a><br/></td></tr>
<tr class="separator:a408835ff6fbad757825d8600e0662937"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Bundles analyzing tools for a clustering (given as sequence of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s) </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ace9f4a6b43173de5ec5264c3b17b8839"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>default constructor </p>

</div>
</div>
<a class="anchor" id="a63800e1b364cc7683cf6c39581a57c6f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>copy constructor </p>

</div>
</div>
<a class="anchor" id="a5b12731bfcd44e23a39faca1e2a72796"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ~<a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>destructor </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a299d8214ddc27b9c1dfa59d7ac593ae4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> averagePopulationAberration </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a>&#160;</td>
          <td class="paramname"><em>cluster_quantity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tree</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to calculate the average aberration from average population in partition resulting from a certain step in clustering. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cluster_quantity</td><td>desired partition Size analogue to <a class="el" href="classOpenMS_1_1ClusterAnalyzer.html#a1ddae30375fef566e4a1f53fb43baba9" title="Method to calculate a partition resulting from a certain step in clustering given by the number of cl...">ClusterAnalyzer::cut</a> </td></tr>
    <tr><td class="paramname">tree</td><td>vector of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s representing the clustering </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">invalid_parameter</td><td>if desired clustering is invalid </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the average aberration from the average cluster population (number of elements/cluster_quantity) at cluster_quantity </dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a65875b284ab1d8b9c346998d5630ae47"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a>&gt; averageSilhouetteWidth </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1DistanceMatrix.html">DistanceMatrix</a>&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>original</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to calculate the average silhouette widths for a clustering. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tree</td><td>vector of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s representing the clustering </td></tr>
    <tr><td class="paramname">original</td><td><a class="el" href="classOpenMS_1_1DistanceMatrix.html" title="A two-dimensional distance matrix, similar to OpenMS::Matrix. ">DistanceMatrix</a> for all clustered elements started from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a vector filled with the average silhouette widths for each clusterstep</dd></dl>
<p>The average silhouette width will becalculated for each clustering step beginning with the first step(n-1 cluster) ending with the last (1 cluster, average silhouette width is 0 by definition). </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0d3b1464ce71cbf44e55e068e154c925"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a>&gt; cohesion </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; std::vector&lt; <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>clusters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1DistanceMatrix.html">DistanceMatrix</a>&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>original</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to calculate the cohesions of a certain partition. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clusters</td><td>vector of vectors holding the clusters (with indices to the actual elements) </td></tr>
    <tr><td class="paramname">original</td><td><a class="el" href="classOpenMS_1_1DistanceMatrix.html" title="A two-dimensional distance matrix, similar to OpenMS::Matrix. ">DistanceMatrix</a> for all clustered elements started from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a vector that holds the cohesions of each cluster given with <code>clusters</code> (order corresponds to <code>clusters</code>) </dd></dl>

</div>
</div>
<a class="anchor" id="a1ddae30375fef566e4a1f53fb43baba9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cut </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a>&#160;</td>
          <td class="paramname"><em>cluster_quantity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a> &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>clusters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to calculate a partition resulting from a certain step in clustering given by the number of clusters. </p>
<p>If you want to fetch all clusters which were created with a threshold, you simply count the number of tree-nodes which are not -1, and substract that from the number of leafes, to get the number of clusters formed , i.e. cluster_quantity = data.size() - real_leaf_count;</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cluster_quantity</td><td>Size giving the number of clusters (i.e. starting elements - cluster_quantity = cluster step) </td></tr>
    <tr><td class="paramname">tree</td><td>vector of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s representing the clustering </td></tr>
    <tr><td class="paramname">clusters</td><td>vector of vectors holding the clusters (with indices to the actual elements) </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">invalid_parameter</td><td>if desired clusterstep is invalid </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a></dd></dl>
<p>after call of this method the argument clusters is filled corresponding to the given <code>cluster_quantity</code> with the indices of the elements clustered </p>

<p>Referenced by <a class="el" href="classOpenMS_1_1SpectraMerger.html#a600d56293a3a35b7ef362d788c35eb99">SpectraMerger::mergeSpectraPrecursors()</a>.</p>

</div>
</div>
<a class="anchor" id="aab291e2f97b916d42f3c009385f75c36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cut </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__Concept.html#gaf9ecec2d692138fab9167164a457cbd4">Size</a>&#160;</td>
          <td class="paramname"><em>cluster_quantity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>subtrees</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to calculate subtrees from a given tree resulting from a certain step in clustering given by the number of clusters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cluster_quantity</td><td>Size giving the number of clusters (i.e. starting elements - cluster_quantity = cluster step) </td></tr>
    <tr><td class="paramname">tree</td><td>vector of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s representing the clustering </td></tr>
    <tr><td class="paramname">subtrees</td><td>vector of trees holding the trees, tree is composed of cut at given size </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">invalid_parameter</td><td>if desired clusterstep is invalid </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a></dd></dl>
<p>after call of this method the argument clusters is filled corresponding to the given <code>cluster_quantity</code> with the indices of the elements clustered </p>

</div>
</div>
<a class="anchor" id="ab6842fb78cfcd90d7426528978640f7a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a>&gt; dunnIndices </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1DistanceMatrix.html">DistanceMatrix</a>&lt; <a class="el" href="group__Concept.html#gab685845059e8a2c92743427d9a698c70">Real</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>original</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>tree_from_singlelinkage</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Method to calculate Dunns indices for a clustering. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tree</td><td>vector of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s representing the clustering </td></tr>
    <tr><td class="paramname">original</td><td><a class="el" href="classOpenMS_1_1DistanceMatrix.html" title="A two-dimensional distance matrix, similar to OpenMS::Matrix. ">DistanceMatrix</a> for all clustered elements started from </td></tr>
    <tr><td class="paramname">tree_from_singlelinkage</td><td>true if tree was created by <a class="el" href="classOpenMS_1_1SingleLinkage.html" title="SingleLinkage ClusterMethod. ">SingleLinkage</a>, i.e. the distances are the minimal distances in increasing order and can be used to speed up the calculation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac228371cea18f2d7413fa9587af138a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOpenMS_1_1String.html">String</a> newickTree </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classOpenMS_1_1BinaryTreeNode.html">BinaryTreeNode</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>include_distance</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the hierarchy described by a clustering tree as Newick-String. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tree</td><td>vector of <a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a>'s representing the clustering </td></tr>
    <tr><td class="paramname">include_distance</td><td>bool value indicating whether the distance shall be included to the string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classOpenMS_1_1BinaryTreeNode.html" title="Elements of a binary tree used to represent a hierarchical clustering process. ">BinaryTreeNode</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a408835ff6fbad757825d8600e0662937"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a>&amp; operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1ClusterAnalyzer.html">ClusterAnalyzer</a> &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>assignment operator </p>

</div>
</div>
</div><!-- contents -->
<HR style="height:1px; border:none; border-top:1px solid #c0c0c0;">
<TABLE width="100%" border="0">
<TR>
<TD><font color="#c0c0c0">OpenMS / TOPP release 1.11.1</font></TD>
<TD align="right"><font color="#c0c0c0">Documentation generated on Thu Nov 14 2013 11:19:28 using doxygen 1.8.5</font></TD>
</TR>
</TABLE>
</BODY>
</HTML>