|
Histogram of input data. More...
Functions | |
AFAPI array | histogram (const array &in, const unsigned nbins, const double minval, const double maxval) |
C++ Interface for histogram. More... | |
AFAPI array | histogram (const array &in, const unsigned nbins) |
C++ Interface for histogram. More... | |
AFAPI af_err | af_histogram (af_array *out, const af_array in, const unsigned nbins, const double minval, const double maxval) |
C Interface for histogram. More... | |
Histogram of input data.
A histogram is a representation of the distribution of given data. This representation is essentially a graph consisting of the data range or domain on one axis and frequency of occurence on the other axis. All the data in the domain is counted in the appropriate bin. The total number of elements belonging to each bin is known as the bin's frequency.
The regular histogram function creates bins of equal size between the minimum and maximum of the input data (min and max are calculated internally). The histogram min-max function takes input parameters minimum and maximum, and divides the bins into equal sizes within the range specified by min and max parameters. All values less than min in the data range are placed in the first (min) bin and all values greater than max will be placed in the last (max) bin.
AFAPI af_err af_histogram | ( | af_array * | out, |
const af_array | in, | ||
const unsigned | nbins, | ||
const double | minval, | ||
const double | maxval | ||
) |
C Interface for histogram.
[out] | out | (type u32) is the histogram for input array in |
[in] | in | is the input array |
[in] | nbins | Number of bins to populate between min and max |
[in] | minval | minimum bin value (accumulates -inf to min) |
[in] | maxval | minimum bin value (accumulates max to +inf) |
AFAPI array af::histogram | ( | const array & | in, |
const unsigned | nbins, | ||
const double | minval, | ||
const double | maxval | ||
) |
C++ Interface for histogram.
[in] | in | is the input array |
[in] | nbins | Number of bins to populate between min and max |
[in] | minval | minimum bin value (accumulates -inf to min) |
[in] | maxval | minimum bin value (accumulates max to +inf) |
C++ Interface for histogram.
[in] | in | is the input array |
[in] | nbins | Number of bins to populate between min and max |