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
20
24
29
32
35
39
44
47
50
55
60MRC_API void MR_Histogram_addSample(MR_Histogram *_this, float sample, const MR_uint64_t *count);
61
67
73
78
83
88
94
99
100#ifdef __cplusplus
101} // extern "C"
102#endif
struct MR_std_vector_uint64_t MR_std_vector_uint64_t
Definition MRBitSet.h:56
struct MR_std_pair_float_float MR_std_pair_float_float
Definition MRDistanceMap.h:32
struct MR_Histogram MR_Histogram
Definition MRHistogram.h:19
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:23
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition exports.h:11
size_t size() const