MeshLib C Docs
Loading...
Searching...
No Matches
MRHistogram.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_std_pair_float_float MR_std_pair_float_float; // Defined in `#include <MRCMisc/std_pair_float_float.h>`.
13typedef struct MR_std_vector_uint64_t MR_std_vector_uint64_t; // Defined in `#include <MRCMisc/std_vector_uint64_t.h>`.
14
15
19
23
28
31
34
38
43
46
49
54
59MRC_API void MR_Histogram_addSample(MR_Histogram *_this, float sample, const MR_uint64_t *count);
60
66
72
77
82
87
93
98
99#ifdef __cplusplus
100} // extern "C"
101#endif
struct MR_std_pair_float_float MR_std_pair_float_float
Definition MRDistanceMap.h:31
struct MR_std_vector_uint64_t MR_std_vector_uint64_t
Definition MRHeapBytes.h:18
struct MR_Histogram MR_Histogram
Definition MRHistogram.h:18
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_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...
MRC_API MR_std_pair_float_float * MR_Histogram_getBinMinMax(const MR_Histogram *_this, MR_uint64_t binId)
MRC_API MR_Histogram * MR_Histogram_DefaultConstruct(void)
MRC_API MR_uint64_t MR_Histogram_getBinId(const MR_Histogram *_this, float sample)
MRC_API MR_uint64_t MR_Histogram_heapBytes(const MR_Histogram *_this)
MRC_API float MR_Histogram_getMin(const MR_Histogram *_this)
MRC_API MR_Histogram * MR_Histogram_ConstructFromAnother(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 float MR_Histogram_getMax(const MR_Histogram *_this)
MRC_API MR_Histogram * MR_Histogram_DefaultConstructArray(size_t num_elems)
MRC_API MR_Histogram * MR_Histogram_AssignFromAnother(MR_Histogram *_this, MR_PassBy _other_pass_by, MR_Histogram *_other)
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 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...
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 MR_Histogram * MR_Histogram_Construct(float min, float max, MR_uint64_t size)
MR_PassBy
Definition common.h:19
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
size_t size() const