ocal similarities between</span>
<span class="sd">                structures A and B, with N and M atoms respectively.</span>
<span class="sd">        Returns:</span>
<span class="sd">            float: Average similarity between the structures A and B.</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="n">K_ij</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">mean</span><span class="p">(</span><span class="n">localkernel</span><span