">radius</span><span class="p">,</span> <span class="n">pos</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">output_type</span><span class="o">=</span><span class="s2">&quot;coo_matrix&quot;</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot;Calculates a sparse distance matrix by only considering distances</span>
<span class="sd">        within a certain cutoff. Uses a k-d tree to reach O(n log(N)) time</span>
<span class="sd">       