A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.arrayfire.org/docs/group__image__func__histogram.htm below:

ArrayFire: histogram

Histogram of input data. 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.

◆ af_histogram()

C Interface for histogram.

Parameters
[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)
Returns
AF_SUCCESS if the histogram is successfully created, otherwise an appropriate error code is returned.
◆ histogram() [1/2]

C++ Interface for histogram.

float input[] = {1, 2, 1, 1, 3, 6, 7, 8, 3};

int nbins = 10;

size_t nElems = sizeof(input) / sizeof(float);

array hist_in(nElems, input);

AFAPI array histogram(const array &in, const unsigned nbins, const double minval, const double maxval)

C++ Interface for histogram.

Parameters
[in] in is the input array [in] nbins Number of bins to populate between min and max
Returns
histogram array of type u32
◆ histogram() [2/2] AFAPI array histogram ( const arrayin, const unsigned  nbins, const double  minval, const double  maxval  )

C++ Interface for histogram.

float input[] = {1, 2, 1, 1, 3, 6, 7, 8, 3};

int nbins = 10;

size_t nElems = sizeof(input) / sizeof(float);

array hist_in(nElems, input);

array hist_out =

histogram

(hist_in, nbins, 0, 9);

Parameters
[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)
Returns
histogram array of type u32

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