 N - Y[:, -N])[:, np.newaxis],
                         Y[:, -N + 1:]], axis=-1)
    return X, Zf</code></pre>
</details>
</dd>
<dt id="asrpy.asr_utils.geometric_median"><code class="name flex">
<span>def <span class="ident">geometric_median</span></span>(<span>X, tol=1e-05, max_iter=500)</span>
</code></dt>
<dd>
<div class="desc"><p>Geometric median.</p>
<p>This code is adapted from [2]<em> using the Vardi and Zhang algorithm
described in [1]</em>.</p>
<h2 id="parameters">Parameters</h2>
<dl>
<dt><strong><