
<dt><strong><code>window</code></strong> :&ensp;<code>int</code></dt>
<dd>Window size.</dd>
</dl>
<h2 id="returns">Returns</h2>
<dl>
<dt><strong><code>cov</code></strong> :&ensp;<code>array, shape=(n_blocks, n_chans, n_chans)</code></dt>
<dd>Block covariance.</dd>
</dl></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def block_covariance(data, window=128):
    &#34;&#34;&#34;Compute blockwise covariance.

    Parameters
    ----------
    data :