CBD.lib.std.html 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>CBD.lib.std module &mdash; CBD Simulation Development Kit documentation</title>
  8. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  9. <!-- <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> -->
  10. <link rel="stylesheet" href="_static/style.css" type="text/css" />
  11. <link rel="index" title="Index" href="genindex.html" />
  12. <link rel="search" title="Search" href="search.html" />
  13. <link rel="next" title="CBD.lib.io module" href="CBD.lib.io.html" />
  14. <link rel="prev" title="Standard CBD Library (BBL)" href="CBD.lib.html" />
  15. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-167094275-1"></script>
  16. <script src="_static/js/googleanalytics.min.js"></script>
  17. <script src="_static/js/modernizr.min.js"></script>
  18. <!-- Preload the theme fonts -->
  19. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  20. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  21. <link rel="preload" href="_static/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  22. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  23. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-medium-italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  24. <link rel="preload" href="_static/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  25. <!-- Preload the katex fonts -->
  26. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  27. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  28. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  29. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size1-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  30. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size4-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  31. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size2-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  32. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size3-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  33. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  34. </head>
  35. <div class="container-fluid header-holder tutorials-header" id="header-holder">
  36. <div class="container">
  37. <div class="header-container">
  38. <a class="header-logo" href="https://catalyst-team.com/" aria-label="Catalyst"></a>
  39. <div class="main-menu">
  40. <ul>
  41. <li>
  42. <div class="ecosystem-dropdown">
  43. <a id="dropdownMenuButtonEcosystem" data-toggle="ecosystem-dropdown">
  44. Ecosystem
  45. </a>
  46. <div class="ecosystem-dropdown-menu">
  47. <a class="nav-dropdown-item" href="https://alchemy.host">
  48. <span class=dropdown-title>Alchemy</span>
  49. <p>Experiments logging & visualization</p>
  50. </a>
  51. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/catalyst">
  52. <span class=dropdown-title>Catalyst</span>
  53. <p>Accelerated deep learning R&D</p>
  54. </a>
  55. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/reaction">
  56. <span class=dropdown-title>Reaction</span>
  57. <p>Convenient deep learning models serving</p>
  58. </a>
  59. </div>
  60. </div>
  61. </li>
  62. <li>
  63. <div class="projects-dropdown">
  64. <a id="dropdownMenuButtonProjects" data-toggle="projects-dropdown">
  65. Projects
  66. </a>
  67. <div class="projects-dropdown-menu">
  68. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/codestyle">
  69. <span class=dropdown-title>Codestyle</span>
  70. <p>Joint R&D codestyle</p>
  71. </a>
  72. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/neuro">
  73. <span class=dropdown-title>Catalyst.Neuro</span>
  74. <p>Catalyst.Team and TReNDS collaborative project</p>
  75. </a>
  76. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/classification">
  77. <span class=dropdown-title>Classification</span>
  78. <p>Image classification pipeline with transfer learning</p>
  79. </a>
  80. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/detection">
  81. <span class=dropdown-title>Detection</span>
  82. <p>Object detection pipeline</p>
  83. </a>
  84. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/segmentation">
  85. <span class=dropdown-title>Segmentation</span>
  86. <p>Image semantic segmentation pipeline</p>
  87. </a>
  88. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/gan">
  89. <span class=dropdown-title>Catalyst.GAN</span>
  90. <p>GAN pipelines</p>
  91. </a>
  92. </div>
  93. </div>
  94. </li>
  95. <li>
  96. <a href="https://github.com/catalyst-team/dl-course">Deep learning course</a>
  97. </li>
  98. </ul>
  99. </div>
  100. <a class="main-menu-open-button" href="#" data-behavior="open-mobile-menu"></a>
  101. </div>
  102. </div>
  103. </div>
  104. <body class="catalyst-body">
  105. <div class="table-of-contents-link-wrapper">
  106. <span>Table of Contents</span>
  107. <a href="#" class="toggle-table-of-contents" data-behavior="toggle-table-of-contents"></a>
  108. </div>
  109. <nav data-toggle="wy-nav-shift" class="catalyst-left-menu" id="catalyst-left-menu">
  110. <div class="catalyst-side-scroll">
  111. <div class="catalyst-menu catalyst-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  112. <div class="catalyst-left-menu-search">
  113. <div role="search">
  114. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  115. <input type="text" name="q" placeholder="Search Docs" />
  116. <input type="hidden" name="check_keywords" value="yes" />
  117. <input type="hidden" name="area" value="default" />
  118. </form>
  119. </div>
  120. </div>
  121. <p class="caption"><span class="caption-text">Setup</span></p>
  122. <ul>
  123. <li class="toctree-l1"><a class="reference internal" href="install.html">How to install the CBD framework?</a></li>
  124. <li class="toctree-l1"><a class="reference internal" href="running.html">How to run a CBD simulation?</a></li>
  125. <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
  126. </ul>
  127. <p class="caption"><span class="caption-text">Simple Examples</span></p>
  128. <ul>
  129. <li class="toctree-l1"><a class="reference internal" href="examples/SinGen.html">Sine Generator</a></li>
  130. <li class="toctree-l1"><a class="reference internal" href="examples/EvenNumberGen.html">Hierarchical Even Number Generator</a></li>
  131. <li class="toctree-l1"><a class="reference internal" href="examples/Fibonacci.html">Fibonacci Sequence Generator</a></li>
  132. <li class="toctree-l1"><a class="reference internal" href="examples/LCG.html">Linear Congruential Generator</a></li>
  133. </ul>
  134. <p class="caption"><span class="caption-text">Advanced Examples</span></p>
  135. <ul>
  136. <li class="toctree-l1"><a class="reference internal" href="examples/RealTime.html">Realtime Simulation</a></li>
  137. <li class="toctree-l1"><a class="reference internal" href="examples/LivePlot.html">Live Plotting of Data During the Simulation</a></li>
  138. <li class="toctree-l1"><a class="reference internal" href="examples/Dashboard.html">TkInter Dashboard with Editable Values</a></li>
  139. </ul>
  140. <p class="caption"><span class="caption-text">Internal Documentation</span></p>
  141. <ul class="current">
  142. <li class="toctree-l1 current"><a class="reference internal" href="CBD.html">CBD package</a></li>
  143. </ul>
  144. </div>
  145. </div>
  146. </nav>
  147. <div class="catalyst-container">
  148. <div class="catalyst-page-level-bar" id="catalyst-page-level-bar">
  149. <div class="catalyst-breadcrumbs-wrapper">
  150. <div role="navigation" aria-label="breadcrumbs navigation">
  151. <ul class="catalyst-breadcrumbs">
  152. <li>
  153. <a href="index.html">
  154. Docs
  155. </a> &gt;
  156. </li>
  157. <li><a href="CBD.html">CBD package</a> &gt;</li>
  158. <li><a href="CBD.lib.html">Standard CBD Library (BBL)</a> &gt;</li>
  159. <li>CBD.lib.std module</li>
  160. <li class="catalyst-breadcrumbs-aside">
  161. </li>
  162. </ul>
  163. </div>
  164. </div>
  165. <div class="catalyst-shortcuts-wrapper" id="catalyst-shortcuts-wrapper">
  166. Shortcuts
  167. </div>
  168. </div>
  169. <section data-toggle="wy-nav-shift" id="catalyst-content-wrap" class="catalyst-content-wrap">
  170. <div class="catalyst-content-left">
  171. <div class="rst-content">
  172. <div role="main" class="main-content" itemscope="itemscope" itemtype="http://schema.org/Article">
  173. <article itemprop="articleBody" id="catalyst-article" class="catalyst-article">
  174. <div class="section" id="module-CBD.lib.std">
  175. <span id="cbd-lib-std-module"></span><h1>CBD.lib.std module<a class="headerlink" href="#module-CBD.lib.std" title="Permalink to this headline">¶</a></h1>
  176. <p>This file contains the standard library for CBD building blocks.</p>
  177. <dl class="class">
  178. <dt id="CBD.lib.std.ConstantBlock">
  179. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">ConstantBlock</code><span class="sig-paren">(</span><em>block_name</em>, <em>value=0.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ConstantBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ConstantBlock" title="Permalink to this definition">¶</a></dt>
  180. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  181. <p>The constant block will always output its constant value</p>
  182. <dl class="method">
  183. <dt id="CBD.lib.std.ConstantBlock.getValue">
  184. <code class="descname">getValue</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ConstantBlock.getValue"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ConstantBlock.getValue" title="Permalink to this definition">¶</a></dt>
  185. <dd><p>Get the current value.</p>
  186. </dd></dl>
  187. <dl class="method">
  188. <dt id="CBD.lib.std.ConstantBlock.setValue">
  189. <code class="descname">setValue</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ConstantBlock.setValue"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ConstantBlock.setValue" title="Permalink to this definition">¶</a></dt>
  190. <dd><p>Change the constant value.</p>
  191. </dd></dl>
  192. <dl class="method">
  193. <dt id="CBD.lib.std.ConstantBlock.compute">
  194. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ConstantBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ConstantBlock.compute" title="Permalink to this definition">¶</a></dt>
  195. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  196. signal.</p>
  197. <table class="docutils field-list" frame="void" rules="none">
  198. <col class="field-name" />
  199. <col class="field-body" />
  200. <tbody valign="top">
  201. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  202. </tr>
  203. </tbody>
  204. </table>
  205. </dd></dl>
  206. </dd></dl>
  207. <dl class="class">
  208. <dt id="CBD.lib.std.NegatorBlock">
  209. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">NegatorBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#NegatorBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.NegatorBlock" title="Permalink to this definition">¶</a></dt>
  210. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  211. <p>The negator block will output the value of the input multiplied with -1</p>
  212. <dl class="method">
  213. <dt id="CBD.lib.std.NegatorBlock.compute">
  214. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#NegatorBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.NegatorBlock.compute" title="Permalink to this definition">¶</a></dt>
  215. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  216. signal.</p>
  217. <table class="docutils field-list" frame="void" rules="none">
  218. <col class="field-name" />
  219. <col class="field-body" />
  220. <tbody valign="top">
  221. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  222. </tr>
  223. </tbody>
  224. </table>
  225. </dd></dl>
  226. </dd></dl>
  227. <dl class="class">
  228. <dt id="CBD.lib.std.InverterBlock">
  229. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">InverterBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#InverterBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.InverterBlock" title="Permalink to this definition">¶</a></dt>
  230. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  231. <p>The invertblock will output 1/IN</p>
  232. <dl class="method">
  233. <dt id="CBD.lib.std.InverterBlock.compute">
  234. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#InverterBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.InverterBlock.compute" title="Permalink to this definition">¶</a></dt>
  235. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  236. signal.</p>
  237. <table class="docutils field-list" frame="void" rules="none">
  238. <col class="field-name" />
  239. <col class="field-body" />
  240. <tbody valign="top">
  241. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  242. </tr>
  243. </tbody>
  244. </table>
  245. </dd></dl>
  246. </dd></dl>
  247. <dl class="class">
  248. <dt id="CBD.lib.std.AdderBlock">
  249. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">AdderBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AdderBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AdderBlock" title="Permalink to this definition">¶</a></dt>
  250. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  251. <p>The adderblock will add the 2 inputs</p>
  252. <dl class="method">
  253. <dt id="CBD.lib.std.AdderBlock.compute">
  254. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AdderBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AdderBlock.compute" title="Permalink to this definition">¶</a></dt>
  255. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  256. signal.</p>
  257. <table class="docutils field-list" frame="void" rules="none">
  258. <col class="field-name" />
  259. <col class="field-body" />
  260. <tbody valign="top">
  261. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  262. </tr>
  263. </tbody>
  264. </table>
  265. </dd></dl>
  266. </dd></dl>
  267. <dl class="class">
  268. <dt id="CBD.lib.std.ProductBlock">
  269. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">ProductBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ProductBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ProductBlock" title="Permalink to this definition">¶</a></dt>
  270. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  271. <p>The product block will multiply the two inputs</p>
  272. <dl class="method">
  273. <dt id="CBD.lib.std.ProductBlock.compute">
  274. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ProductBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ProductBlock.compute" title="Permalink to this definition">¶</a></dt>
  275. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  276. signal.</p>
  277. <table class="docutils field-list" frame="void" rules="none">
  278. <col class="field-name" />
  279. <col class="field-body" />
  280. <tbody valign="top">
  281. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. </dd></dl>
  286. </dd></dl>
  287. <dl class="class">
  288. <dt id="CBD.lib.std.ModuloBlock">
  289. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">ModuloBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ModuloBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ModuloBlock" title="Permalink to this definition">¶</a></dt>
  290. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  291. <p>A basic block that computes the IN1 modulo IN2</p>
  292. <dl class="method">
  293. <dt id="CBD.lib.std.ModuloBlock.compute">
  294. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ModuloBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ModuloBlock.compute" title="Permalink to this definition">¶</a></dt>
  295. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  296. signal.</p>
  297. <table class="docutils field-list" frame="void" rules="none">
  298. <col class="field-name" />
  299. <col class="field-body" />
  300. <tbody valign="top">
  301. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  302. </tr>
  303. </tbody>
  304. </table>
  305. </dd></dl>
  306. </dd></dl>
  307. <dl class="class">
  308. <dt id="CBD.lib.std.RootBlock">
  309. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">RootBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#RootBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.RootBlock" title="Permalink to this definition">¶</a></dt>
  310. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  311. <p>A basic block that computes the IN2-th root from IN1</p>
  312. <dl class="method">
  313. <dt id="CBD.lib.std.RootBlock.compute">
  314. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#RootBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.RootBlock.compute" title="Permalink to this definition">¶</a></dt>
  315. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  316. signal.</p>
  317. <table class="docutils field-list" frame="void" rules="none">
  318. <col class="field-name" />
  319. <col class="field-body" />
  320. <tbody valign="top">
  321. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  322. </tr>
  323. </tbody>
  324. </table>
  325. </dd></dl>
  326. </dd></dl>
  327. <dl class="class">
  328. <dt id="CBD.lib.std.AbsBlock">
  329. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">AbsBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AbsBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AbsBlock" title="Permalink to this definition">¶</a></dt>
  330. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  331. <p>The abs block will output the absolute value of the input.</p>
  332. <dl class="method">
  333. <dt id="CBD.lib.std.AbsBlock.compute">
  334. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AbsBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AbsBlock.compute" title="Permalink to this definition">¶</a></dt>
  335. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  336. signal.</p>
  337. <table class="docutils field-list" frame="void" rules="none">
  338. <col class="field-name" />
  339. <col class="field-body" />
  340. <tbody valign="top">
  341. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. </dd></dl>
  346. </dd></dl>
  347. <dl class="class">
  348. <dt id="CBD.lib.std.IntBlock">
  349. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">IntBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#IntBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.IntBlock" title="Permalink to this definition">¶</a></dt>
  350. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  351. <p>The int block will output the integer value (floored) of the input.</p>
  352. <dl class="method">
  353. <dt id="CBD.lib.std.IntBlock.compute">
  354. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#IntBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.IntBlock.compute" title="Permalink to this definition">¶</a></dt>
  355. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  356. signal.</p>
  357. <table class="docutils field-list" frame="void" rules="none">
  358. <col class="field-name" />
  359. <col class="field-body" />
  360. <tbody valign="top">
  361. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  362. </tr>
  363. </tbody>
  364. </table>
  365. </dd></dl>
  366. </dd></dl>
  367. <dl class="class">
  368. <dt id="CBD.lib.std.ClampBlock">
  369. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">ClampBlock</code><span class="sig-paren">(</span><em>block_name</em>, <em>min=-1</em>, <em>max=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ClampBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ClampBlock" title="Permalink to this definition">¶</a></dt>
  370. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  371. <p>The clamp block will clamp the input between min and max.</p>
  372. <dl class="method">
  373. <dt id="CBD.lib.std.ClampBlock.compute">
  374. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#ClampBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.ClampBlock.compute" title="Permalink to this definition">¶</a></dt>
  375. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  376. signal.</p>
  377. <table class="docutils field-list" frame="void" rules="none">
  378. <col class="field-name" />
  379. <col class="field-body" />
  380. <tbody valign="top">
  381. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  382. </tr>
  383. </tbody>
  384. </table>
  385. </dd></dl>
  386. </dd></dl>
  387. <dl class="class">
  388. <dt id="CBD.lib.std.GenericBlock">
  389. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">GenericBlock</code><span class="sig-paren">(</span><em>block_name</em>, <em>block_operator=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#GenericBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.GenericBlock" title="Permalink to this definition">¶</a></dt>
  390. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  391. <p>The generic block will evaluate the operator on the input
  392. operator is the name (a string) of a Python function from the math library
  393. which will be called when the block is evaluated
  394. by default, initialized to None</p>
  395. <dl class="method">
  396. <dt id="CBD.lib.std.GenericBlock.getBlockOperator">
  397. <code class="descname">getBlockOperator</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#GenericBlock.getBlockOperator"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.GenericBlock.getBlockOperator" title="Permalink to this definition">¶</a></dt>
  398. <dd></dd></dl>
  399. <dl class="method">
  400. <dt id="CBD.lib.std.GenericBlock.compute">
  401. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#GenericBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.GenericBlock.compute" title="Permalink to this definition">¶</a></dt>
  402. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  403. signal.</p>
  404. <table class="docutils field-list" frame="void" rules="none">
  405. <col class="field-name" />
  406. <col class="field-body" />
  407. <tbody valign="top">
  408. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  409. </tr>
  410. </tbody>
  411. </table>
  412. </dd></dl>
  413. </dd></dl>
  414. <dl class="class">
  415. <dt id="CBD.lib.std.MultiplexerBlock">
  416. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">MultiplexerBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#MultiplexerBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.MultiplexerBlock" title="Permalink to this definition">¶</a></dt>
  417. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  418. <p>The multiplexer block will output the signal from IN1 if select == 0; otherwise
  419. the signal from IN2 is outputted.</p>
  420. <dl class="method">
  421. <dt id="CBD.lib.std.MultiplexerBlock.compute">
  422. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#MultiplexerBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.MultiplexerBlock.compute" title="Permalink to this definition">¶</a></dt>
  423. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  424. signal.</p>
  425. <table class="docutils field-list" frame="void" rules="none">
  426. <col class="field-name" />
  427. <col class="field-body" />
  428. <tbody valign="top">
  429. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  430. </tr>
  431. </tbody>
  432. </table>
  433. </dd></dl>
  434. </dd></dl>
  435. <dl class="class">
  436. <dt id="CBD.lib.std.LessThanBlock">
  437. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">LessThanBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#LessThanBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.LessThanBlock" title="Permalink to this definition">¶</a></dt>
  438. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  439. <p>A simple block that will test if the IN1 is smaller than IN2 (output == 1 if true else 0)</p>
  440. <dl class="method">
  441. <dt id="CBD.lib.std.LessThanBlock.compute">
  442. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#LessThanBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.LessThanBlock.compute" title="Permalink to this definition">¶</a></dt>
  443. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  444. signal.</p>
  445. <table class="docutils field-list" frame="void" rules="none">
  446. <col class="field-name" />
  447. <col class="field-body" />
  448. <tbody valign="top">
  449. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  450. </tr>
  451. </tbody>
  452. </table>
  453. </dd></dl>
  454. </dd></dl>
  455. <dl class="class">
  456. <dt id="CBD.lib.std.EqualsBlock">
  457. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">EqualsBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#EqualsBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.EqualsBlock" title="Permalink to this definition">¶</a></dt>
  458. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  459. <p>A simple block that will test if the IN1 is equal to IN2 (output == 1 if true else 0)</p>
  460. <dl class="method">
  461. <dt id="CBD.lib.std.EqualsBlock.compute">
  462. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#EqualsBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.EqualsBlock.compute" title="Permalink to this definition">¶</a></dt>
  463. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  464. signal.</p>
  465. <table class="docutils field-list" frame="void" rules="none">
  466. <col class="field-name" />
  467. <col class="field-body" />
  468. <tbody valign="top">
  469. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  470. </tr>
  471. </tbody>
  472. </table>
  473. </dd></dl>
  474. </dd></dl>
  475. <dl class="class">
  476. <dt id="CBD.lib.std.LessThanOrEqualsBlock">
  477. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">LessThanOrEqualsBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#LessThanOrEqualsBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.LessThanOrEqualsBlock" title="Permalink to this definition">¶</a></dt>
  478. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  479. <p>A simple block that will test if the IN1 is smaller than or equals to IN2 (output == 1 if true else 0)</p>
  480. <dl class="method">
  481. <dt id="CBD.lib.std.LessThanOrEqualsBlock.compute">
  482. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#LessThanOrEqualsBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.LessThanOrEqualsBlock.compute" title="Permalink to this definition">¶</a></dt>
  483. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  484. signal.</p>
  485. <table class="docutils field-list" frame="void" rules="none">
  486. <col class="field-name" />
  487. <col class="field-body" />
  488. <tbody valign="top">
  489. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  490. </tr>
  491. </tbody>
  492. </table>
  493. </dd></dl>
  494. </dd></dl>
  495. <dl class="class">
  496. <dt id="CBD.lib.std.NotBlock">
  497. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">NotBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#NotBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.NotBlock" title="Permalink to this definition">¶</a></dt>
  498. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  499. <p>A simple Not block that will set a 0 to 1 and vice versa</p>
  500. <dl class="method">
  501. <dt id="CBD.lib.std.NotBlock.compute">
  502. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#NotBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.NotBlock.compute" title="Permalink to this definition">¶</a></dt>
  503. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  504. signal.</p>
  505. <table class="docutils field-list" frame="void" rules="none">
  506. <col class="field-name" />
  507. <col class="field-body" />
  508. <tbody valign="top">
  509. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. </dd></dl>
  514. </dd></dl>
  515. <dl class="class">
  516. <dt id="CBD.lib.std.OrBlock">
  517. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">OrBlock</code><span class="sig-paren">(</span><em>block_name</em>, <em>numberOfInputs=2</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#OrBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.OrBlock" title="Permalink to this definition">¶</a></dt>
  518. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  519. <p>A simple Or block with possibly multiple inputlines</p>
  520. <dl class="method">
  521. <dt id="CBD.lib.std.OrBlock.compute">
  522. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#OrBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.OrBlock.compute" title="Permalink to this definition">¶</a></dt>
  523. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  524. signal.</p>
  525. <table class="docutils field-list" frame="void" rules="none">
  526. <col class="field-name" />
  527. <col class="field-body" />
  528. <tbody valign="top">
  529. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  530. </tr>
  531. </tbody>
  532. </table>
  533. </dd></dl>
  534. <dl class="method">
  535. <dt id="CBD.lib.std.OrBlock.getNumberOfInputs">
  536. <code class="descname">getNumberOfInputs</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#OrBlock.getNumberOfInputs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.OrBlock.getNumberOfInputs" title="Permalink to this definition">¶</a></dt>
  537. <dd></dd></dl>
  538. </dd></dl>
  539. <dl class="class">
  540. <dt id="CBD.lib.std.AndBlock">
  541. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">AndBlock</code><span class="sig-paren">(</span><em>block_name</em>, <em>numberOfInputs=2</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AndBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AndBlock" title="Permalink to this definition">¶</a></dt>
  542. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  543. <p>A simple And block with possibly multiple inputlines</p>
  544. <dl class="method">
  545. <dt id="CBD.lib.std.AndBlock.compute">
  546. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AndBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AndBlock.compute" title="Permalink to this definition">¶</a></dt>
  547. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  548. signal.</p>
  549. <table class="docutils field-list" frame="void" rules="none">
  550. <col class="field-name" />
  551. <col class="field-body" />
  552. <tbody valign="top">
  553. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  554. </tr>
  555. </tbody>
  556. </table>
  557. </dd></dl>
  558. <dl class="method">
  559. <dt id="CBD.lib.std.AndBlock.getNumberOfInputs">
  560. <code class="descname">getNumberOfInputs</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AndBlock.getNumberOfInputs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AndBlock.getNumberOfInputs" title="Permalink to this definition">¶</a></dt>
  561. <dd></dd></dl>
  562. </dd></dl>
  563. <dl class="class">
  564. <dt id="CBD.lib.std.DelayBlock">
  565. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">DelayBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#DelayBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.DelayBlock" title="Permalink to this definition">¶</a></dt>
  566. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  567. <p>A delay block that takes the last value from the list
  568. IC: Initial Condition</p>
  569. <dl class="method">
  570. <dt id="CBD.lib.std.DelayBlock.getDependencies">
  571. <code class="descname">getDependencies</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#DelayBlock.getDependencies"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.DelayBlock.getDependencies" title="Permalink to this definition">¶</a></dt>
  572. <dd><p>Helper function to help the creation of the dependency graph.</p>
  573. <table class="docutils field-list" frame="void" rules="none">
  574. <col class="field-name" />
  575. <col class="field-body" />
  576. <tbody valign="top">
  577. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The current simulation’s iteration, for which
  578. the dependency graph must be constructed.</td>
  579. </tr>
  580. </tbody>
  581. </table>
  582. </dd></dl>
  583. <dl class="method">
  584. <dt id="CBD.lib.std.DelayBlock.compute">
  585. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#DelayBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.DelayBlock.compute" title="Permalink to this definition">¶</a></dt>
  586. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  587. signal.</p>
  588. <table class="docutils field-list" frame="void" rules="none">
  589. <col class="field-name" />
  590. <col class="field-body" />
  591. <tbody valign="top">
  592. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  593. </tr>
  594. </tbody>
  595. </table>
  596. </dd></dl>
  597. </dd></dl>
  598. <dl class="class">
  599. <dt id="CBD.lib.std.TimeBlock">
  600. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">TimeBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#TimeBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.TimeBlock" title="Permalink to this definition">¶</a></dt>
  601. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  602. <p>Outputs the current time of the simulation</p>
  603. <dl class="method">
  604. <dt id="CBD.lib.std.TimeBlock.compute">
  605. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#TimeBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.TimeBlock.compute" title="Permalink to this definition">¶</a></dt>
  606. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  607. signal.</p>
  608. <table class="docutils field-list" frame="void" rules="none">
  609. <col class="field-name" />
  610. <col class="field-body" />
  611. <tbody valign="top">
  612. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  613. </tr>
  614. </tbody>
  615. </table>
  616. </dd></dl>
  617. </dd></dl>
  618. <dl class="class">
  619. <dt id="CBD.lib.std.LoggingBlock">
  620. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">LoggingBlock</code><span class="sig-paren">(</span><em>block_name</em>, <em>string</em>, <em>lev=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#LoggingBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.LoggingBlock" title="Permalink to this definition">¶</a></dt>
  621. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.BaseBlock" title="CBD.CBD.BaseBlock"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.BaseBlock</span></code></a></p>
  622. <p>A simple Logging block</p>
  623. <dl class="method">
  624. <dt id="CBD.lib.std.LoggingBlock.compute">
  625. <code class="descname">compute</code><span class="sig-paren">(</span><em>curIteration</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#LoggingBlock.compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.LoggingBlock.compute" title="Permalink to this definition">¶</a></dt>
  626. <dd><p>Computes this block’s operation, based on its inputs and store it as an output
  627. signal.</p>
  628. <table class="docutils field-list" frame="void" rules="none">
  629. <col class="field-name" />
  630. <col class="field-body" />
  631. <tbody valign="top">
  632. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>curIteration</strong> (<em>int</em>) – The iteration at which we must compute this value.</td>
  633. </tr>
  634. </tbody>
  635. </table>
  636. </dd></dl>
  637. </dd></dl>
  638. <dl class="class">
  639. <dt id="CBD.lib.std.AddOneBlock">
  640. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">AddOneBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#AddOneBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.AddOneBlock" title="Permalink to this definition">¶</a></dt>
  641. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.CBD" title="CBD.CBD.CBD"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.CBD</span></code></a></p>
  642. <p>Block adds a one to the input (used a lot for mux)</p>
  643. </dd></dl>
  644. <dl class="class">
  645. <dt id="CBD.lib.std.DerivatorBlock">
  646. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">DerivatorBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#DerivatorBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.DerivatorBlock" title="Permalink to this definition">¶</a></dt>
  647. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.CBD" title="CBD.CBD.CBD"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.CBD</span></code></a></p>
  648. <p>The derivator block is a CBD that calculates the derivative</p>
  649. </dd></dl>
  650. <dl class="class">
  651. <dt id="CBD.lib.std.IntegratorBlock">
  652. <em class="property">class </em><code class="descclassname">CBD.lib.std.</code><code class="descname">IntegratorBlock</code><span class="sig-paren">(</span><em>block_name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/lib/std.html#IntegratorBlock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.lib.std.IntegratorBlock" title="Permalink to this definition">¶</a></dt>
  653. <dd><p>Bases: <a class="reference internal" href="CBD.CBD.html#CBD.CBD.CBD" title="CBD.CBD.CBD"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD.CBD.CBD</span></code></a></p>
  654. <p>The integrator block is a CBD that calculates the integration.
  655. The block is implemented according to the trapezoid rule.</p>
  656. </dd></dl>
  657. </div>
  658. </article>
  659. </div>
  660. <footer>
  661. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  662. <a href="CBD.lib.io.html" class="btn btn-neutral float-right" title="CBD.lib.io module" accesskey="n" rel="next">Next <img src="_static/images/chevron-right-orange.svg" class="next-page"></a>
  663. <a href="CBD.lib.html" class="btn btn-neutral" title="Standard CBD Library (BBL)" accesskey="p" rel="prev"><img src="_static/images/chevron-right-orange.svg" class="previous-page"> Previous</a>
  664. </div>
  665. <hr>
  666. <div role="contentinfo">
  667. <p>
  668. &copy; Copyright 2020, Randy Paredis.
  669. </p>
  670. </div>
  671. <div>
  672. Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  673. </div>
  674. </footer>
  675. </div>
  676. </div>
  677. <div class="catalyst-content-right" id="catalyst-content-right">
  678. <div class="catalyst-right-menu" id="catalyst-right-menu">
  679. <div class="catalyst-side-scroll" id="catalyst-side-scroll-right">
  680. <ul>
  681. <li><a class="reference internal" href="#">CBD.lib.std module</a></li>
  682. </ul>
  683. </div>
  684. </div>
  685. </div>
  686. </section>
  687. </div>
  688. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  689. <script type="text/javascript" src="_static/jquery.js"></script>
  690. <script type="text/javascript" src="_static/underscore.js"></script>
  691. <script type="text/javascript" src="_static/doctools.js"></script>
  692. <script type="text/javascript" src="_static/language_data.js"></script>
  693. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  694. <script type="text/javascript" src="_static/js/vendor/popper.min.js"></script>
  695. <script type="text/javascript" src="_static/js/vendor/bootstrap.min.js"></script>
  696. <script type="text/javascript" src="_static/js/theme.js"></script>
  697. <script type="text/javascript">
  698. jQuery(function () {
  699. SphinxRtdTheme.Navigation.enable(true);
  700. });
  701. </script>
  702. <!-- Begin Footer -->
  703. <footer class="site-footer" id="site-footer">
  704. <div class="container footer-container">
  705. <div class="footer-logo-wrapper">
  706. <a href="https://catalyst-team.com/" class="footer-logo"></a>
  707. </div>
  708. <div class="footer-links-wrapper">
  709. <div class="footer-links-col">
  710. <ul>
  711. <li class="list-title"><a href="https://github.com/catalyst-team">Ecosystem</a></li>
  712. <li><a class="nav-dropdown-item" href="https://alchemy.host">Alchemy</a></li>
  713. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/catalyst">Catalyst</a></li>
  714. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/reaction">Reaction</a></li>
  715. </ul>
  716. </div>
  717. <div class="footer-links-col">
  718. <ul>
  719. <li class="list-title"><a href="https://github.com/catalyst-team">Projects</a></li>
  720. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/codestyle">Codestyle</a></li>
  721. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/neuro">Catalyst.Neuro</a></li>
  722. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/classification">Classification</a></li>
  723. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/detection">Detection</a></li>
  724. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/segmentation">Segmentation</a></li>
  725. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/gan">Catalyst.GAN</a></li>
  726. </ul>
  727. </div>
  728. <div class="footer-links-col">
  729. <ul>
  730. <li class="list-title"><a href="https://catalyst-team.com/">Support</a></li>
  731. <li><a href="https://github.com/catalyst-team/catalyst/issues" target="_blank">Github Issues</a></li>
  732. <li><a href="https://github.com/catalyst-team/catalyst/blob/master/CONTRIBUTING.md" target="_blank">Contributing</a></li>
  733. <li><a href="https://www.patreon.com/catalyst_team" target="_blank">Patreon</a></li>
  734. </ul>
  735. </div>
  736. <div class="footer-links-col follow-us-col">
  737. <div class="footer-social-icons">
  738. <a href="https://t.me/catalyst_team" target="_blank" class="telegram"></a>
  739. <a href="https://twitter.com/catalyst_core" target="_blank" class="twitter"></a>
  740. <a href="https://join.slack.com/t/catalyst-team-core/shared_invite/zt-d9miirnn-z86oKDzFMKlMG4fgFdZafw" target="_blank" class="ods"></a>
  741. </div>
  742. </div>
  743. </div>
  744. </div>
  745. </footer>
  746. <!-- End Footer -->
  747. <!-- Begin Mobile Menu -->
  748. <div class="mobile-main-menu">
  749. <div class="container-fluid">
  750. <div class="container">
  751. <div class="mobile-main-menu-header-container">
  752. <a class="header-logo" href="https://catalyst-team.com/" aria-label="Catalyst"></a>
  753. <a class="main-menu-close-button" href="#" data-behavior="close-mobile-menu"></a>
  754. </div>
  755. </div>
  756. </div>
  757. <div class="mobile-main-menu-links-container">
  758. <div class="main-menu">
  759. <ul>
  760. <li>
  761. <a href="">Get Started</a>
  762. </li>
  763. <li>
  764. <a href="https://github.com/catalyst-team/catalyst">Github</a>
  765. </li>
  766. </ul>
  767. </div>
  768. </div>
  769. </div>
  770. <!-- End Mobile Menu -->
  771. <script type="text/javascript" src="_static/js/vendor/anchor.min.js"></script>
  772. <script type="text/javascript">
  773. $(document).ready(function() {
  774. mobileMenu.bind();
  775. mobileTOC.bind();
  776. catalystAnchors.bind();
  777. sideMenus.bind();
  778. scrollToAnchor.bind();
  779. highlightNavigation.bind();
  780. mainMenuDropdown.bind();
  781. // Add class to links that have code blocks, since we cannot create links in code blocks
  782. $("article.catalyst-article a span.pre").each(function(e) {
  783. $(this).closest("a").addClass("has-code");
  784. });
  785. })
  786. </script>
  787. </body>
  788. </html>