ass="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
    <table class="ref-arguments">
    <colgroup><col class="name" /><col class="desc" /></colgroup>
    <tr>
      <th>x</th>
      <td><p>stars, RasterLayer, RasterStack, RasterBrick, matrix, or array.</p></td>
    </tr>
    <tr>
      <th>method</th>
      <td><p>A method used. Either "hierarchy" for
the hierarchy-based method (Gao et al., 2017) or "aggregation" (default)
for the aggregation-based method (Gao et al., 201