Find the median of values in the input. More...
Functions | |
| array | median (const array &in, const dim_t dim=-1) |
| C++ Interface for median. | |
| template<typename T> | |
| T | median (const array &in) |
| C++ Interface for median of all elements. | |
| af_err | af_median (af_array *out, const af_array in, const dim_t dim) |
| C Interface for median. | |
| af_err | af_median_all (double *realVal, double *imagVal, const af_array in) |
| C Interface for median. | |
Find the median of values in the input.
This function performs the operation across all dimensions of the input array.
C Interface for median.
| [out] | out | will contain the median of the input array along dimension dim |
| [in] | in | is the input array |
| [in] | dim | the dimension along which the median is extracted |
C Interface for median.
| [out] | realVal | will contain the real part of median of the entire input array |
| [out] | imagVal | will contain the imaginary part of median of the entire input array |
| [in] | in | is the input array |
| T median | ( | const array & | in | ) |
C++ Interface for median of all elements.
| [in] | in | is the input array |
C++ Interface for median.
| [in] | in | is the input array |
| [in] | dim | the dimension along which the median is extracted |
dim dim is -1 by default. -1 denotes the first non-singleton dimension.