#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stddef.h>
Go to the source code of this file.
|
| MRC_API MR_Histogram * | MR_Histogram_DefaultConstruct (void) |
| |
| MRC_API MR_Histogram * | MR_Histogram_DefaultConstructArray (size_t num_elems) |
| |
| MRC_API const MR_Histogram * | MR_Histogram_OffsetPtr (const MR_Histogram *ptr, ptrdiff_t i) |
| | Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
|
| |
| MRC_API MR_Histogram * | MR_Histogram_OffsetMutablePtr (MR_Histogram *ptr, ptrdiff_t i) |
| | Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
|
| |
| MRC_API MR_Histogram * | MR_Histogram_ConstructFromAnother (MR_PassBy _other_pass_by, MR_Histogram *_other) |
| |
| MRC_API MR_Histogram * | MR_Histogram_Construct (float min, float max, MR_uint64_t size) |
| |
| MRC_API void | MR_Histogram_Destroy (const MR_Histogram *_this) |
| | Destroys a heap-allocated instance of MR_Histogram. Does nothing if the pointer is null.
|
| |
| MRC_API void | MR_Histogram_DestroyArray (const MR_Histogram *_this) |
| | Destroys a heap-allocated array of MR_Histogram. Does nothing if the pointer is null.
|
| |
| MRC_API MR_Histogram * | MR_Histogram_AssignFromAnother (MR_Histogram *_this, MR_PassBy _other_pass_by, MR_Histogram *_other) |
| |
| MRC_API void | MR_Histogram_addSample (MR_Histogram *_this, float sample, const MR_uint64_t *count) |
| |
| MRC_API void | MR_Histogram_addHistogram (MR_Histogram *_this, const MR_Histogram *hist) |
| |
| MRC_API const MR_std_vector_uint64_t * | MR_Histogram_getBins (const MR_Histogram *_this) |
| |
| MRC_API float | MR_Histogram_getMin (const MR_Histogram *_this) |
| |
| MRC_API float | MR_Histogram_getMax (const MR_Histogram *_this) |
| |
| MRC_API MR_uint64_t | MR_Histogram_getBinId (const MR_Histogram *_this, float sample) |
| |
| MRC_API MR_std_pair_float_float * | MR_Histogram_getBinMinMax (const MR_Histogram *_this, MR_uint64_t binId) |
| |
| MRC_API MR_uint64_t | MR_Histogram_heapBytes (const MR_Histogram *_this) |
| |
◆ MR_Histogram
Simple class for calculating histogram Generated from class MR::Histogram. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
◆ MR_std_pair_float_float
◆ MR_std_vector_uint64_t
◆ MR_Histogram_addHistogram()
Adds bins of input hist to this Generated from method MR::Histogram::addHistogram. Parameter _this can not be null. It is a single object. Parameter hist can not be null. It is a single object.
◆ MR_Histogram_addSample()
Adds sample to corresponding bin Generated from method MR::Histogram::addSample. Parameter _this can not be null. It is a single object. Parameter count has a default argument: 1, pass a null pointer to use it.
◆ MR_Histogram_AssignFromAnother()
Generated from method MR::Histogram::operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_Histogram_Construct()
Initialize histogram with minimum and maximum values, and number of bins Generated from constructor MR::Histogram::Histogram. Never returns null. Returns an instance allocated on the heap! Must call MR_Histogram_Destroy() to free it when you're done using it.
◆ MR_Histogram_ConstructFromAnother()
◆ MR_Histogram_DefaultConstruct()
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Histogram_Destroy() to free it when you're done using it.
◆ MR_Histogram_DefaultConstructArray()
◆ MR_Histogram_Destroy()
Destroys a heap-allocated instance of MR_Histogram. Does nothing if the pointer is null.
◆ MR_Histogram_DestroyArray()
Destroys a heap-allocated array of MR_Histogram. Does nothing if the pointer is null.
◆ MR_Histogram_getBinId()
Gets id of bin that inherits sample Generated from method MR::Histogram::getBinId. Parameter _this can not be null. It is a single object.
◆ MR_Histogram_getBinMinMax()
Gets minimum and maximum of diapason inherited by bin Generated from method MR::Histogram::getBinMinMax. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_pair_float_float_Destroy() to free it when you're done using it.
◆ MR_Histogram_getBins()
Gets bins Generated from method MR::Histogram::getBins. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_Histogram_getMax()
Gets maximum value of histogram Generated from method MR::Histogram::getMax. Parameter _this can not be null. It is a single object.
◆ MR_Histogram_getMin()
Gets minimum value of histogram Generated from method MR::Histogram::getMin. Parameter _this can not be null. It is a single object.
◆ MR_Histogram_heapBytes()
returns the amount of memory this object occupies on heap Generated from method MR::Histogram::heapBytes. Parameter _this can not be null. It is a single object.
◆ MR_Histogram_OffsetMutablePtr()
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
◆ MR_Histogram_OffsetPtr()
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.