Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Histogram) -> &mut meshlib::Histogram |
| void | add_sample (sample:f32, count:Option< usize >) |
| void | add_histogram (hist:&meshlib::Histogram) |
| auto | get_bins () const -> &meshlib::std_vector_size_t |
| auto | get_min () const -> f32 |
| auto | get_max () const -> f32 |
| auto | get_bin_id (sample:f32) const -> usize |
| auto | get_bin_min_max (binId:usize) const -> meshlib::Owned< meshlib::std_pair_float_float > |
| auto | heap_bytes () const -> usize |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::Histogram > |
| static auto | construct_from_another (_other:&meshlib::Histogram) -> meshlib::Owned< meshlib::Histogram > |
| static auto | construct (min:f32, max:f32, size:usize) -> meshlib::Owned< meshlib::Histogram > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
Simple class for calculating histogram Generated from class MR::Histogram.
Generated from class MR::Histogram. Heap-allocated instances are held in Owned<Histogram>.
| void meshlib::Histogram::add_histogram | ( | hist:&meshlib::Histogram | ) |
Adds bins of input hist to this Generated from method MR::Histogram::addHistogram.
Calls MR_Histogram_addHistogram().
| void meshlib::Histogram::add_sample | ( | sample:f32 | , |
| count:Option< usize > | ) |
Adds sample to corresponding bin Generated from method MR::Histogram::addSample.
Calls MR_Histogram_addSample().
| auto meshlib::Histogram::assign_from_another | ( | _other:&meshlib::Histogram | ) | -> &mut meshlib::Histogram |
Generated from method MR::Histogram::operator=.
Calls MR_Histogram_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
Initialize histogram with minimum and maximum values, and number of bins Generated from constructor MR::Histogram::Histogram.
Calls MR_Histogram_Construct(). The reference to the parameter size might be preserved in the constructed object.
|
static |
Generated from constructor MR::Histogram::Histogram.
Calls MR_Histogram_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Histogram::get_bin_id | ( | sample:f32 | ) | const -> usize |
Gets id of bin that inherits sample Generated from method MR::Histogram::getBinId.
Calls MR_Histogram_getBinId().
| auto meshlib::Histogram::get_bin_min_max | ( | binId:usize | ) | const -> meshlib::Owned< meshlib::std_pair_float_float > |
Gets minimum and maximum of diapason inherited by bin Generated from method MR::Histogram::getBinMinMax.
Calls MR_Histogram_getBinMinMax().
| auto meshlib::Histogram::get_bins | ( | ) | const -> &meshlib::std_vector_size_t |
Gets bins Generated from method MR::Histogram::getBins.
Calls MR_Histogram_getBins().
| auto meshlib::Histogram::get_max | ( | ) | const -> f32 |
Gets maximum value of histogram Generated from method MR::Histogram::getMax.
Calls MR_Histogram_getMax().
| auto meshlib::Histogram::get_min | ( | ) | const -> f32 |
Gets minimum value of histogram Generated from method MR::Histogram::getMin.
Calls MR_Histogram_getMin().
| auto meshlib::Histogram::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::Histogram::heapBytes.
Calls MR_Histogram_heapBytes().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Histogram_DefaultConstruct().