  <div id="arguments">
    <h2>Arguments</h2>
    <dl><dt>rast</dt>
<dd><p>An integer raster or matrix representing the m categories (0,1,2,..., m)</p></dd>


<dt>window</dt>
<dd><p>A binary (0,1) matrix representing the neighbours spatial weights when working
with rasters. The matrix must have odd dimensions.</p></dd>


<dt>matdist</dt>
<dd><p>A matrix representing the dissimilarity between the clusters. The matrix must
be squared and the diagonal must be filled with zeros.</p></dd>

</dl></div>
    <div i