Documentation
|
|
The C++ interface for mean. More...
| array | mean (const array &input, int dim=-1) |
| Average along a dimension. More... | |
| template<typename ty > | |
| ty | mean (const array &input) |
| Average of all elements in array. More... | |
The C++ interface for mean.
Returns the mean of a set of elements
| array af::mean | ( | const array & | input, |
| int | dim = -1 |
||
| ) |
Average along a dimension.
| [in] | input | |
| [in] | dim | dimension along which to operate (-1 indicates first non-singleton dimension) |
dim in the input | ty af::mean | ( | const array & | input | ) |
Average of all elements in array.
| [in] | input |