You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
<span id="arrayfire-statistics-module"></span><h1>arrayfire.statistics module<a class="headerlink" href="#module-arrayfire.statistics" title="Permalink to this headline">¶</a></h1>
<p>Statistical algorithms (mean, var, stdev, etc).</p>
<dd><p>Return top k elements along a single dimension.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><dl class="simple">
<dt><strong>data: af.Array</strong></dt><dd><p>Input array to return k elements from.</p>
</dd>
<dt><strong>k: scalar. default: 0</strong></dt><dd><p>The number of elements to return from input array.</p>
</dd>
<dt><strong>dim: optional: scalar. default: 0</strong></dt><dd><p>The dimension along which the top k elements are
extracted. Note: at the moment, topk() only supports the
extraction of values along the first dimension.</p>
</dd>
<dt><strong>order: optional: af.TOPK. default: af.TOPK.DEFAULT</strong></dt><dd><p>The ordering of k extracted elements. Defaults to top k max values.</p>
</dd>
</dl>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><dl class="simple">
<dt>values: af.Array</dt><dd><p>Top k elements from input array.</p>
</dd>
<dt>indices: af.Array</dt><dd><p>Corresponding index array to top k elements.</p>