31 : _num_bins(num_bins), _offset(offset), _range(range)
53 return _range / _num_bins;
58 return _num_bins *
sizeof(uint32_t);
__global uchar * offset(const Image *img, int x, int y)
Get the pointer position of a Image.
uint32_t range() const
Returns the range of the distribution.
size_t dimensions() const override
Returns the dimensions of the distribution.
uint32_t window() const
Returns the window of the distribution, which is the range divided by the number of bins...
Copyright (c) 2017-2021 Arm Limited.
SimpleTensor< T > range(SimpleTensor< T > &dst, float start, const size_t num_of_elements, float step)
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
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...
size_t num_bins() const
Returns the number of bins that the distribution has.
void set_range(uint32_t range)
Sets the range of the distribution.
size_t size() const override
Returns the total size in bytes of the distribution.
int32_t offset() const
Returns the offset of the distribution.