Statistical algorithms (mean, var, stdev, etc).
arrayfire.statistics.
corrcoef
(x, y)[source]¶
Calculate the correlation coefficient of the input arrays.
The first input array.
The second input array.
Array containing the correlation coefficient of the input arrays.
arrayfire.statistics.
cov
(a, isbiased=False, dim=None)[source]¶
Calculate covariance along a given dimension.
The input array.
Boolean denoting whether biased estimate should be taken.
The dimension for which to obtain the covariance from input data.
Array containing the covariance of the input array along a given dimension.
arrayfire.statistics.
mean
(a, weights=None, dim=None)[source]¶
Calculate mean along a given dimension.
The input array.
Array to calculate the weighted mean. Must match size of the input array.
The dimension for which to obtain the mean from input data.
Array containing the mean of the input array along a given dimension.
arrayfire.statistics.
meanvar
(a, weights=None, bias=<VARIANCE.DEFAULT: 0>, dim=-1)[source]¶
Calculate mean and variance along a given dimension.
The input array.
Array to calculate for the weighted mean. Must match size of the input array.
population variance(VARIANCE.POPULATION) or sample variance(VARIANCE.SAMPLE).
The dimension for which to obtain the variance from input data.
Array containing the mean of the input array along a given dimension.
Array containing the variance of the input array along a given dimension.
arrayfire.statistics.
median
(a, dim=None)[source]¶
Calculate median along a given dimension.
The input array.
The dimension for which to obtain the median from input data.
Array containing the median of the input array along a given dimension.
arrayfire.statistics.
stdev
(a, dim=None)[source]¶
Calculate standard deviation along a given dimension.
The input array.
The dimension for which to obtain the standard deviation from input data.
Array containing the standard deviation of the input array along a given dimension.
arrayfire.statistics.
topk
(data, k, dim=0, order=<TOPK.DEFAULT: 0>)[source]¶
Return top k elements along a single dimension.
Input array to return k elements from.
The number of elements to return from input array.
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.
The ordering of k extracted elements. Defaults to top k max values.
Top k elements from input array.
Corresponding index array to top k elements.
arrayfire.statistics.
var
(a, isbiased=False, weights=None, dim=None)[source]¶
Calculate variance along a given dimension.
The input array.
Boolean denoting population variance (false) or sample variance (true).
Array to calculate for the weighted mean. Must match size of the input array.
The dimension for which to obtain the variance from input data.
Array containing the variance of the input array along a given dimension.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4