MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Histogram:

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

Detailed Description

Simple class for calculating histogram Generated from class MR::Histogram.

Generated from class MR::Histogram. Heap-allocated instances are held in Owned<Histogram>.

Member Function Documentation

◆ add_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().

◆ add_sample()

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().

◆ assign_from_another()

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.

◆ construct()

auto meshlib::Histogram::construct ( min:f32 ,
max:f32 ,
size:usize  ) -> meshlib::Owned< meshlib::Histogram >
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.

◆ construct_from_another()

auto meshlib::Histogram::construct_from_another ( _other:&meshlib::Histogram ) -> meshlib::Owned< meshlib::Histogram >
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.

◆ get_bin_id()

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().

◆ get_bin_min_max()

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().

◆ get_bins()

auto meshlib::Histogram::get_bins ( ) const -> &meshlib::std_vector_size_t

Gets bins Generated from method MR::Histogram::getBins.

Calls MR_Histogram_getBins().

◆ get_max()

auto meshlib::Histogram::get_max ( ) const -> f32

Gets maximum value of histogram Generated from method MR::Histogram::getMax.

Calls MR_Histogram_getMax().

◆ get_min()

auto meshlib::Histogram::get_min ( ) const -> f32

Gets minimum value of histogram Generated from method MR::Histogram::getMin.

Calls MR_Histogram_getMin().

◆ heap_bytes()

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().

◆ new()

auto meshlib::Histogram::new ( ) -> meshlib::Owned< meshlib::Histogram >
static

Constructs an empty (default-constructed) instance.

Calls MR_Histogram_DefaultConstruct().


The documentation for this struct was generated from the following file: