Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/share/doc/libclam-doc/html/ |
Current File : //proc/self/root/usr/share/doc/libclam-doc/html/classCLAM_1_1DiscontinuousSegmentation.html |
<!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"/> <title>CLAM-Development: CLAM::DiscontinuousSegmentation Class 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="doxygen.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 style="padding-left: 0.5em;"> <div id="projectname">CLAM-Development  <span id="projectnumber">1.4.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceCLAM.html">CLAM</a></li><li class="navelem"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html">DiscontinuousSegmentation</a></li> </ul> </div> </div><!-- top --> <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> </div> <div class="headertitle"> <div class="title">CLAM::DiscontinuousSegmentation Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>></code></p> <p><a href="classCLAM_1_1DiscontinuousSegmentation-members.html">List of all members.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation_1_1InsertedOutOfBounds.html">InsertedOutOfBounds</a></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation_1_1MissplacedOffset.html">MissplacedOffset</a></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation_1_1MissplacedOnset.html">MissplacedOnset</a></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation_1_1OffsetMissing.html">OffsetMissing</a></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:ac2000493b9296f4ca97455f7d036169c"><td class="memItemLeft" align="right" valign="top">typedef std::vector< double > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#ac2000493b9296f4ca97455f7d036169c">TimePositions</a></td></tr> <tr class="inherit_header pub_types_classCLAM_1_1Segmentation"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classCLAM_1_1Segmentation')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classCLAM_1_1Segmentation.html">CLAM::Segmentation</a></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a349b6e4bae6a78e2163f0e389e4ce0c3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#a349b6e4bae6a78e2163f0e389e4ce0c3">DiscontinuousSegmentation</a> (double <a class="el" href="classCLAM_1_1Segmentation.html#a61fb7ea38826de578251c7f5b30ef861">maxPosition</a>=0)</td></tr> <tr class="memitem:aaa55dbfad7c4299195a3518b14065348"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#aaa55dbfad7c4299195a3518b14065348">DiscontinuousSegmentation</a> (double <a class="el" href="classCLAM_1_1Segmentation.html#a61fb7ea38826de578251c7f5b30ef861">maxPosition</a>, const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> *begin, const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> *end)</td></tr> <tr class="memdesc:aaa55dbfad7c4299195a3518b14065348"><td class="mdescLeft"> </td><td class="mdescRight">It will create a discontinuous segmentation where the onsets and offsets are specified on the ordered list of bounds [begin,end) <a href="#aaa55dbfad7c4299195a3518b14065348"></a><br/></td></tr> <tr class="memitem:ad60ae21338db80c11dbedaf685e86a0f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#ad60ae21338db80c11dbedaf685e86a0f">takeArray</a> (const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> *begin, const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> *end)</td></tr> <tr class="memdesc:ad60ae21338db80c11dbedaf685e86a0f"><td class="mdescLeft"> </td><td class="mdescRight">take data from an array. <a href="#ad60ae21338db80c11dbedaf685e86a0f"></a><br/></td></tr> <tr class="memitem:a61822af65376b7fa42e88cdfa0a16f08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#a61822af65376b7fa42e88cdfa0a16f08">insert</a> (double timePosition)</td></tr> <tr class="memdesc:a61822af65376b7fa42e88cdfa0a16f08"><td class="mdescLeft"> </td><td class="mdescRight">Inserts a new border at timePosition. <a href="#a61822af65376b7fa42e88cdfa0a16f08"></a><br/></td></tr> <tr class="memitem:aaf49a0c81eeddea68b1def4ea4e33307"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#aaf49a0c81eeddea68b1def4ea4e33307">insert</a> (double timePosition, std::string label)</td></tr> <tr class="memdesc:aaf49a0c81eeddea68b1def4ea4e33307"><td class="mdescLeft"> </td><td class="mdescRight">Inserts a new border at timePosition and adds a label to the new segment. <a href="#aaf49a0c81eeddea68b1def4ea4e33307"></a><br/></td></tr> <tr class="memitem:ad5078800f9719e573b741a0340dd10cd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#ad5078800f9719e573b741a0340dd10cd">remove</a> (<a class="el" href="classunsigned.html">unsigned</a> segment)</td></tr> <tr class="memdesc:ad5078800f9719e573b741a0340dd10cd"><td class="mdescLeft"> </td><td class="mdescRight">Removes the specified segment. <a href="#ad5078800f9719e573b741a0340dd10cd"></a><br/></td></tr> <tr class="memitem:a63bcd1f2efe7ee56816c9eb66bfcc9f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#a63bcd1f2efe7ee56816c9eb66bfcc9f2">pickOffset</a> (double timePosition, double tolerance) const </td></tr> <tr class="memdesc:a63bcd1f2efe7ee56816c9eb66bfcc9f2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the index of the segment whose offset is nearest to the given time position, and within the tolerance. <a href="#a63bcd1f2efe7ee56816c9eb66bfcc9f2"></a><br/></td></tr> <tr class="memitem:a06b29f708f4b0f343fcb64592ebcb063"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#a06b29f708f4b0f343fcb64592ebcb063">pickOnset</a> (double timePosition, double tolerance) const </td></tr> <tr class="memdesc:a06b29f708f4b0f343fcb64592ebcb063"><td class="mdescLeft"> </td><td class="mdescRight">Returns the index of the segment whose onset is nearest to the given time position, and within the tolerance. <a href="#a06b29f708f4b0f343fcb64592ebcb063"></a><br/></td></tr> <tr class="memitem:a61ecac6702a22d324dc6c3df0462ebb5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#a61ecac6702a22d324dc6c3df0462ebb5">pickSegmentBody</a> (double timePosition) const </td></tr> <tr class="memdesc:a61ecac6702a22d324dc6c3df0462ebb5"><td class="mdescLeft"> </td><td class="mdescRight">Returns the index of the segment which body is on timePosition. <a href="#a61ecac6702a22d324dc6c3df0462ebb5"></a><br/></td></tr> <tr class="memitem:a5f33c501d565623ec50e8d9c423f822c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#a5f33c501d565623ec50e8d9c423f822c">dragOnset</a> (<a class="el" href="classunsigned.html">unsigned</a> segment, double newTimePosition)</td></tr> <tr class="memdesc:a5f33c501d565623ec50e8d9c423f822c"><td class="mdescLeft"> </td><td class="mdescRight">Performs a dragging movement for the Onset of the given segment in order to move it to the newTimePosition. <a href="#a5f33c501d565623ec50e8d9c423f822c"></a><br/></td></tr> <tr class="memitem:abb84a94d21d02f0cfccb178388afab44"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#abb84a94d21d02f0cfccb178388afab44">dragOffset</a> (<a class="el" href="classunsigned.html">unsigned</a> segment, double newTimePosition)</td></tr> <tr class="memdesc:abb84a94d21d02f0cfccb178388afab44"><td class="mdescLeft"> </td><td class="mdescRight">Performs a dragging movement for the Offset of the given segment in order to move it to the newTimePosition. <a href="#abb84a94d21d02f0cfccb178388afab44"></a><br/></td></tr> <tr class="memitem:ad7b30ae2411564aac93629076baef581"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#ad7b30ae2411564aac93629076baef581">fillArray</a> (<a class="el" href="namespaceCLAM.html#a17d8ae0314065546f8cd8d2ce7764a56">DataArray</a> &segmentation) const </td></tr> <tr class="memdesc:ad7b30ae2411564aac93629076baef581"><td class="mdescLeft"> </td><td class="mdescRight">Fills a DataArray with the segmentation markers. <a href="#ad7b30ae2411564aac93629076baef581"></a><br/></td></tr> <tr class="memitem:ac1d4e4618de09a88c06f5872b0d6abe0"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#ac1d4e4618de09a88c06f5872b0d6abe0">GetClassName</a> () const </td></tr> <tr class="memdesc:ac1d4e4618de09a88c06f5872b0d6abe0"><td class="mdescLeft"> </td><td class="mdescRight">Return the class name. <a href="#ac1d4e4618de09a88c06f5872b0d6abe0"></a><br/></td></tr> <tr class="inherit_header pub_methods_classCLAM_1_1Segmentation"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classCLAM_1_1Segmentation')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classCLAM_1_1Segmentation.html">CLAM::Segmentation</a></td></tr> <tr class="memitem:ab5ba3a62e89ef42b6b139bc304d680b9 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#ab5ba3a62e89ef42b6b139bc304d680b9">Segmentation</a> ()</td></tr> <tr class="memitem:af76f4306cccbffd05e95ae5a30230766 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#af76f4306cccbffd05e95ae5a30230766">Segmentation</a> (double <a class="el" href="classCLAM_1_1Segmentation.html#a61fb7ea38826de578251c7f5b30ef861">maxPosition</a>)</td></tr> <tr class="memitem:a02227333c226473b98e899b4e85e027a inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a02227333c226473b98e899b4e85e027a">~Segmentation</a> ()</td></tr> <tr class="memitem:a8d8db76b946f5318d5d05f979cb87849 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a8d8db76b946f5318d5d05f979cb87849">StoreOn</a> (<a class="el" href="classCLAM_1_1Storage.html">Storage</a> &storage) const </td></tr> <tr class="memdesc:a8d8db76b946f5318d5d05f979cb87849 inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Stores component's subitems on the given <a class="el" href="classCLAM_1_1Storage.html" title="The abstract class for storages.">Storage</a>. <a href="#a8d8db76b946f5318d5d05f979cb87849"></a><br/></td></tr> <tr class="memitem:a92123dc24082db610a1bc82ceb45060d inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a92123dc24082db610a1bc82ceb45060d">LoadFrom</a> (<a class="el" href="classCLAM_1_1Storage.html">Storage</a> &storage)</td></tr> <tr class="memdesc:a92123dc24082db610a1bc82ceb45060d inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Loads component's subitems from the given <a class="el" href="classCLAM_1_1Storage.html" title="The abstract class for storages.">Storage</a>. <a href="#a92123dc24082db610a1bc82ceb45060d"></a><br/></td></tr> <tr class="memitem:ae7070b5e4573997d7a9e37215ce38c1e inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#ae7070b5e4573997d7a9e37215ce38c1e">select</a> (<a class="el" href="classunsigned.html">unsigned</a> segment)</td></tr> <tr class="memitem:af3b0e656679e5f59769e38a0393e7dd8 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#af3b0e656679e5f59769e38a0393e7dd8">deselect</a> (<a class="el" href="classunsigned.html">unsigned</a> segment)</td></tr> <tr class="memitem:add64d10e941080ed7684d5174026a4dd inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#add64d10e941080ed7684d5174026a4dd">clearSelection</a> ()</td></tr> <tr class="memitem:af3162660cfc45b7c63cc2a4dfceb06ad inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#af3162660cfc45b7c63cc2a4dfceb06ad">boundsAsString</a> () const </td></tr> <tr class="memdesc:af3162660cfc45b7c63cc2a4dfceb06ad inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Testing method for the unit tests. <a href="#af3162660cfc45b7c63cc2a4dfceb06ad"></a><br/></td></tr> <tr class="memitem:a23339fcc685293885ab86c22ec52fc19 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCLAM_1_1Segmentation.html#a3b030b25239a86c8b36f3c1f0fc4c6d8">TimePositions</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a23339fcc685293885ab86c22ec52fc19">onsets</a> () const </td></tr> <tr class="memdesc:a23339fcc685293885ab86c22ec52fc19 inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of time position of the segment onsets. <a href="#a23339fcc685293885ab86c22ec52fc19"></a><br/></td></tr> <tr class="memitem:a1f166172a8669ad23fa26ea5a380e5c1 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCLAM_1_1Segmentation.html#a3b030b25239a86c8b36f3c1f0fc4c6d8">TimePositions</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a1f166172a8669ad23fa26ea5a380e5c1">offsets</a> () const </td></tr> <tr class="memdesc:a1f166172a8669ad23fa26ea5a380e5c1 inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of time position of the segment offsets. <a href="#a1f166172a8669ad23fa26ea5a380e5c1"></a><br/></td></tr> <tr class="memitem:a29438c332068feb58381bb1e3908323d inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">const std::vector< std::string > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a29438c332068feb58381bb1e3908323d">labels</a> () const </td></tr> <tr class="memdesc:a29438c332068feb58381bb1e3908323d inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of segment labels. <a href="#a29438c332068feb58381bb1e3908323d"></a><br/></td></tr> <tr class="memitem:af75feeec539f38cd0e13d734d6266d52 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#af75feeec539f38cd0e13d734d6266d52">setLabel</a> (<a class="el" href="classunsigned.html">unsigned</a> segment, std::string label)</td></tr> <tr class="memdesc:af75feeec539f38cd0e13d734d6266d52 inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Sets the label for a particular segment. <a href="#af75feeec539f38cd0e13d734d6266d52"></a><br/></td></tr> <tr class="memitem:a2e3a09df283f40f59acf9f7e818fb9af inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">const std::vector< bool > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a2e3a09df283f40f59acf9f7e818fb9af">selections</a> () const </td></tr> <tr class="memdesc:a2e3a09df283f40f59acf9f7e818fb9af inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Returns a vector of time position of the segment selections. <a href="#a2e3a09df283f40f59acf9f7e818fb9af"></a><br/></td></tr> <tr class="memitem:ad674869be1744d9c4963864f67e718db inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#ad674869be1744d9c4963864f67e718db">current</a> () const </td></tr> <tr class="memdesc:ad674869be1744d9c4963864f67e718db inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current segmentation. <a href="#ad674869be1744d9c4963864f67e718db"></a><br/></td></tr> <tr class="memitem:a42c5e26d5e63790dbd62b416cc383eb8 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a42c5e26d5e63790dbd62b416cc383eb8">current</a> (<a class="el" href="classunsigned.html">unsigned</a> index)</td></tr> <tr class="memdesc:a42c5e26d5e63790dbd62b416cc383eb8 inherit pub_methods_classCLAM_1_1Segmentation"><td class="mdescLeft"> </td><td class="mdescRight">Changes teh current segmentation. <a href="#a42c5e26d5e63790dbd62b416cc383eb8"></a><br/></td></tr> <tr class="memitem:a61fb7ea38826de578251c7f5b30ef861 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a61fb7ea38826de578251c7f5b30ef861">maxPosition</a> () const </td></tr> <tr class="memitem:a513ac144b52c710745576077ba77d278 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a513ac144b52c710745576077ba77d278">maxPosition</a> (double maxPosition)</td></tr> <tr class="memitem:a109a8d69576127244d4201a02a1dced2 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a109a8d69576127244d4201a02a1dced2">xUnits</a> (const std::string &units)</td></tr> <tr class="memitem:a117979bb25def0285716309564f015c1 inherit pub_methods_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a117979bb25def0285716309564f015c1">xUnits</a> () const </td></tr> <tr class="inherit_header pub_methods_classCLAM_1_1Component"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classCLAM_1_1Component')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classCLAM_1_1Component.html">CLAM::Component</a></td></tr> <tr class="memitem:a229332eadae3fc9a50958c8d41f776e1 inherit pub_methods_classCLAM_1_1Component"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Component.html#a229332eadae3fc9a50958c8d41f776e1">~Component</a> ()</td></tr> <tr class="memitem:af3aa59dec7179de172973e9cd6d0b59e inherit pub_methods_classCLAM_1_1Component"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classCLAM_1_1Component.html">Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Component.html#af3aa59dec7179de172973e9cd6d0b59e">ShallowCopy</a> () const </td></tr> <tr class="memitem:abedb266b3be881d94b469d9401586ae6 inherit pub_methods_classCLAM_1_1Component"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classCLAM_1_1Component.html">Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Component.html#abedb266b3be881d94b469d9401586ae6">DeepCopy</a> () const </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pro_attribs_classCLAM_1_1Segmentation"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classCLAM_1_1Segmentation')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classCLAM_1_1Segmentation.html">CLAM::Segmentation</a></td></tr> <tr class="memitem:aec7db6fdfa945038ec77a0ffcab757af inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCLAM_1_1Segmentation.html#a3b030b25239a86c8b36f3c1f0fc4c6d8">TimePositions</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#aec7db6fdfa945038ec77a0ffcab757af">_onsets</a></td></tr> <tr class="memitem:a2c1cdb0aa6daa4ff385e8c16ccd0e1b9 inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCLAM_1_1Segmentation.html#a3b030b25239a86c8b36f3c1f0fc4c6d8">TimePositions</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a2c1cdb0aa6daa4ff385e8c16ccd0e1b9">_offsets</a></td></tr> <tr class="memitem:a93e7995b7c966e2c95aa557d6404d503 inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a93e7995b7c966e2c95aa557d6404d503">_labels</a></td></tr> <tr class="memitem:a9ef5b87312a43fe587d712c79a7554a4 inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">std::vector< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a9ef5b87312a43fe587d712c79a7554a4">_selection</a></td></tr> <tr class="memitem:a765ea67ff1eab63a054cccd9d926e0a9 inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classunsigned.html">unsigned</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a765ea67ff1eab63a054cccd9d926e0a9">_current</a></td></tr> <tr class="memitem:abf394e8ca41850fdbf4f22dfff11fdad inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#abf394e8ca41850fdbf4f22dfff11fdad">_maxPosition</a></td></tr> <tr class="memitem:a724ba002c2a91205b787856f47027429 inherit pro_attribs_classCLAM_1_1Segmentation"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classCLAM_1_1Segmentation.html#a724ba002c2a91205b787856f47027429">_xUnits</a></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00008">8</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="ac2000493b9296f4ca97455f7d036169c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::vector<double> <a class="el" href="classCLAM_1_1DiscontinuousSegmentation.html#ac2000493b9296f4ca97455f7d036169c">CLAM::DiscontinuousSegmentation::TimePositions</a></td> </tr> </table> </div><div class="memdoc"> <p>Reimplemented from <a class="el" href="classCLAM_1_1Segmentation.html#a3b030b25239a86c8b36f3c1f0fc4c6d8">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00055">55</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a349b6e4bae6a78e2163f0e389e4ce0c3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">CLAM::DiscontinuousSegmentation::DiscontinuousSegmentation </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>maxPosition</em> = <code>0</code></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>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00057">57</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> </div> </div> <a class="anchor" id="aaa55dbfad7c4299195a3518b14065348"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">CLAM::DiscontinuousSegmentation::DiscontinuousSegmentation </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>maxPosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> * </td> <td class="paramname"><em>begin</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> * </td> <td class="paramname"><em>end</em> </td> </tr> <tr> <td></td> <td>)</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>It will create a discontinuous segmentation where the onsets and offsets are specified on the ordered list of bounds [begin,end) </p> <dl class="section pre"><dt>Precondition:</dt><dd>The onsets is a sorted container of bounds in between 0 and maxPosition </dd></dl> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00067">67</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00075">takeArray()</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="abb84a94d21d02f0cfccb178388afab44"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void CLAM::DiscontinuousSegmentation::dragOffset </td> <td>(</td> <td class="paramtype"><a class="el" href="classunsigned.html">unsigned</a> </td> <td class="paramname"><em>segment</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>newTimePosition</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Performs a dragging movement for the Offset of the given segment in order to move it to the newTimePosition. </p> <p>Constraints for the segmentation mode are applied. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#a2b0ebda2ad3d221f31a6bd56abdee92f">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00218">218</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00215">CLAM::Segmentation::_maxPosition</a>, <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>.</p> <p>Referenced by <a class="el" href="ChordSegmentator_8hxx_source.html#l00234">Simac::ChordSegmentator::closeLastSegment()</a>, <a class="el" href="ChordSegmentator_8hxx_source.html#l00181">Simac::ChordSegmentator::closeSegment()</a>, <a class="el" href="TonalAnalysis_8cxx_source.html#l00107">CLAM::TonalAnalysis::Do()</a>, <a class="el" href="ChordSegmentator_8hxx_source.html#l00117">Simac::ChordSegmentator::doItSimilarity()</a>, <a class="el" href="ChordSegmentator_8hxx_source.html#l00087">Simac::ChordSegmentator::doItSimple()</a>, and <a class="el" href="ChordSegmentator_8hxx_source.html#l00218">Simac::ChordSegmentator::mergeSegmentIfIdenticalChordInPreviousSegment()</a>.</p> </div> </div> <a class="anchor" id="a5f33c501d565623ec50e8d9c423f822c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void CLAM::DiscontinuousSegmentation::dragOnset </td> <td>(</td> <td class="paramtype"><a class="el" href="classunsigned.html">unsigned</a> </td> <td class="paramname"><em>segment</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>newTimePosition</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Performs a dragging movement for the Onset of the given segment in order to move it to the newTimePosition. </p> <p>Constraints for the segmentation mode are applied. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#a3c2efcdd41c50b2935bd48e7fbe48433">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00196">196</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>.</p> </div> </div> <a class="anchor" id="ad7b30ae2411564aac93629076baef581"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void CLAM::DiscontinuousSegmentation::fillArray </td> <td>(</td> <td class="paramtype"><a class="el" href="namespaceCLAM.html#a17d8ae0314065546f8cd8d2ce7764a56">DataArray</a> & </td> <td class="paramname"><em>segmentation</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Fills a DataArray with the segmentation markers. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#a20fbfb6af208fb1bcaa8dbd37be77390">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00237">237</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>, <a class="el" href="Array_8hxx_source.html#l00120">CLAM::Array< T >::Resize()</a>, and <a class="el" href="Array_8hxx_source.html#l00103">CLAM::Array< T >::SetSize()</a>.</p> </div> </div> <a class="anchor" id="ac1d4e4618de09a88c06f5872b0d6abe0"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char* CLAM::DiscontinuousSegmentation::GetClassName </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the class name. </p> <p>Reimplemented from <a class="el" href="classCLAM_1_1Segmentation.html#ac70ba00dcd3beb3530bd0588b311e9cc">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00249">249</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> </div> </div> <a class="anchor" id="a61822af65376b7fa42e88cdfa0a16f08"></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="classunsigned.html">unsigned</a> CLAM::DiscontinuousSegmentation::insert </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>timePosition</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Inserts a new border at timePosition. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#af6462e0f33b5137cfdc397038a870e3d">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00099">99</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00214">CLAM::Segmentation::_current</a>, <a class="el" href="Segmentation_8hxx_source.html#l00212">CLAM::Segmentation::_labels</a>, <a class="el" href="Segmentation_8hxx_source.html#l00215">CLAM::Segmentation::_maxPosition</a>, <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00213">CLAM::Segmentation::_selection</a>.</p> <p>Referenced by <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00138">insert()</a>, and <a class="el" href="ChordSegmentator_8hxx_source.html#l00175">Simac::ChordSegmentator::openSegment()</a>.</p> </div> </div> <a class="anchor" id="aaf49a0c81eeddea68b1def4ea4e33307"></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="classunsigned.html">unsigned</a> CLAM::DiscontinuousSegmentation::insert </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>timePosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::string </td> <td class="paramname"><em>label</em> </td> </tr> <tr> <td></td> <td>)</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>Inserts a new border at timePosition and adds a label to the new segment. </p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00138">138</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00099">insert()</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00166">CLAM::Segmentation::setLabel()</a>.</p> </div> </div> <a class="anchor" id="a63bcd1f2efe7ee56816c9eb66bfcc9f2"></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="classunsigned.html">unsigned</a> CLAM::DiscontinuousSegmentation::pickOffset </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>timePosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>tolerance</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 class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the index of the segment whose offset is nearest to the given time position, and within the tolerance. </p> <p>If no end of segment within the tolerance range an invalid segment is returned (nSegments) </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#ac89aa5ba91a999ec873cbdd3c96e392b">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00164">164</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>.</p> </div> </div> <a class="anchor" id="a06b29f708f4b0f343fcb64592ebcb063"></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="classunsigned.html">unsigned</a> CLAM::DiscontinuousSegmentation::pickOnset </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>timePosition</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"><em>tolerance</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 class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the index of the segment whose onset is nearest to the given time position, and within the tolerance. </p> <p>If no end of segment within the tolerance range an invalid segment is returned (nSegments) </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#adf58304284c4a0e75c7296851bef198c">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00174">174</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>.</p> </div> </div> <a class="anchor" id="a61ecac6702a22d324dc6c3df0462ebb5"></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="classunsigned.html">unsigned</a> CLAM::DiscontinuousSegmentation::pickSegmentBody </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>timePosition</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the index of the segment which body is on timePosition. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#a3d0ae7e80188190e7e5d513a3a585b43">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00181">181</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>.</p> </div> </div> <a class="anchor" id="ad5078800f9719e573b741a0340dd10cd"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void CLAM::DiscontinuousSegmentation::remove </td> <td>(</td> <td class="paramtype"><a class="el" href="classunsigned.html">unsigned</a> </td> <td class="paramname"><em>segment</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Removes the specified segment. </p> <p>The previous segment is expanded to cover the region. When removing the first segment, the next segment is the one expanded to start at 0. When just a single element, no efect at all. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#ace6c9d408c433e0f2f681472f753429f">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00150">150</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00214">CLAM::Segmentation::_current</a>, <a class="el" href="Segmentation_8hxx_source.html#l00212">CLAM::Segmentation::_labels</a>, <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00213">CLAM::Segmentation::_selection</a>.</p> <p>Referenced by <a class="el" href="ChordSegmentator_8hxx_source.html#l00253">Simac::ChordSegmentator::eraseAllSegments()</a>, and <a class="el" href="ChordSegmentator_8hxx_source.html#l00218">Simac::ChordSegmentator::mergeSegmentIfIdenticalChordInPreviousSegment()</a>.</p> </div> </div> <a class="anchor" id="ad60ae21338db80c11dbedaf685e86a0f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void CLAM::DiscontinuousSegmentation::takeArray </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> * </td> <td class="paramname"><em>begin</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceCLAM.html#ab9c6321b061069797fcc173f61e8111a">TData</a> * </td> <td class="paramname"><em>end</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>take data from an array. </p> <p>Implements <a class="el" href="classCLAM_1_1Segmentation.html#a31274d27e3ff110e842c9dc8ddc03c35">CLAM::Segmentation</a>.</p> <p>Definition at line <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00075">75</a> of file <a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a>.</p> <p>References <a class="el" href="Segmentation_8hxx_source.html#l00212">CLAM::Segmentation::_labels</a>, <a class="el" href="Segmentation_8hxx_source.html#l00215">CLAM::Segmentation::_maxPosition</a>, <a class="el" href="Segmentation_8hxx_source.html#l00211">CLAM::Segmentation::_offsets</a>, <a class="el" href="Segmentation_8hxx_source.html#l00210">CLAM::Segmentation::_onsets</a>, and <a class="el" href="Segmentation_8hxx_source.html#l00213">CLAM::Segmentation::_selection</a>.</p> <p>Referenced by <a class="el" href="DiscontinuousSegmentation_8hxx_source.html#l00067">DiscontinuousSegmentation()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="DiscontinuousSegmentation_8hxx_source.html">DiscontinuousSegmentation.hxx</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1 </small></address> </body> </html>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare