21.02
|
1D Distribution interface More...
#include <IDistribution1D.h>
Public Member Functions | |
IDistribution1D (size_t num_bins, int32_t offset, uint32_t range) | |
Constructor: Creates a 1D Distribution of a consecutive interval [offset, offset + range - 1] defined by a start offset and valid range, divided equally into num_bins parts. More... | |
size_t | num_bins () const |
Returns the number of bins that the distribution has. More... | |
int32_t | offset () const |
Returns the offset of the distribution. More... | |
uint32_t | range () const |
Returns the range of the distribution. More... | |
uint32_t | window () const |
Returns the window of the distribution, which is the range divided by the number of bins. More... | |
void | set_range (uint32_t range) |
Sets the range of the distribution. More... | |
size_t | size () const override |
Returns the total size in bytes of the distribution. More... | |
size_t | dimensions () const override |
Returns the dimensions of the distribution. More... | |
Public Member Functions inherited from IDistribution | |
virtual | ~IDistribution ()=default |
Default virtual destructor. More... | |
virtual uint32_t * | buffer () const =0 |
Returns a pointer to the start of the distribution. More... | |
void | clear () const |
Clears the distribution by setting every element to zero. More... | |
1D Distribution interface
Definition at line 35 of file IDistribution1D.h.
IDistribution1D | ( | size_t | num_bins, |
int32_t | offset, | ||
uint32_t | range | ||
) |
Constructor: Creates a 1D Distribution of a consecutive interval [offset, offset + range - 1] defined by a start offset and valid range, divided equally into num_bins parts.
[in] | num_bins | The number of bins the distribution is divided in. |
[in] | offset | The start of the values to use. |
[in] | range | The total number of the consecutive values of the distribution interval. |
Definition at line 30 of file IDistribution1D.cpp.
References ARM_COMPUTE_ERROR_ON_MSG.
|
overridevirtual |
Returns the dimensions of the distribution.
Implements IDistribution.
Definition at line 66 of file IDistribution1D.cpp.
size_t num_bins | ( | ) | const |
Returns the number of bins that the distribution has.
Definition at line 36 of file IDistribution1D.cpp.
Referenced by CLHistogramKernel::configure(), NEHistogram::configure(), NECumulativeDistributionKernel::configure(), CLHistogramBorderKernel::configure(), and NECumulativeDistributionKernel::run().
int32_t offset | ( | ) | const |
Returns the offset of the distribution.
Definition at line 41 of file IDistribution1D.cpp.
Referenced by CLHistogramKernel::configure(), and CLHistogramBorderKernel::configure().
uint32_t range | ( | ) | const |
Returns the range of the distribution.
Definition at line 46 of file IDistribution1D.cpp.
Referenced by CLHistogramKernel::configure(), CLHistogramBorderKernel::configure(), and IDistribution1D::set_range().
void set_range | ( | uint32_t | range | ) |
Sets the range of the distribution.
[in] | range | New range of the distribution to be set. |
Definition at line 61 of file IDistribution1D.cpp.
References IDistribution1D::range().
|
overridevirtual |
Returns the total size in bytes of the distribution.
Implements IDistribution.
Definition at line 56 of file IDistribution1D.cpp.
Referenced by CLHistogramKernel::configure(), CLHistogramKernel::run(), and CLDistribution1D::unmap().
uint32_t window | ( | ) | const |
Returns the window of the distribution, which is the range divided by the number of bins.
Definition at line 51 of file IDistribution1D.cpp.
Referenced by CLHistogramKernel::configure(), and CLHistogramBorderKernel::configure().