span> <span class="s2">&quot;gap_distance&quot;</span><span class="p">]</span>


<div class="viewcode-block" id="gap_count">
<a class="viewcode-back" href="../../../vtools.data.html#vtools.data.gap.gap_count">[docs]</a>
<span class="k">def</span> <span class="nf">gap_count</span><span class="p">(</span><span class="n">ts</span><span class="p">,</span> <span class="n">state</span><span class="o">=</span><span class="s2">&quot;gap&quot;</span><span class="p">,</span> <span class="n">dtype</span><span class="o