ractVector{Int})
    distance = @inbounds evaluate(metric, view(x, :, view(idx, 1:dim[1])), view(y, :, view(idx, dim[1]+1:dim[1] + dim[2])))
    return (distance &gt; thresholds[1] &amp;&amp; distance &lt;= thresholds[2])
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../motifs/">« Motifs: shapes and sampling</a><a class="docs-footer-nextpage" href="../examples/">Examples »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://g