MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.Histogram Class Reference
Inheritance diagram for meshlib.Histogram:

Public Member Functions

 Histogram (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Histogram ()
 Histogram (meshlib.Histogram _other)
 Histogram (float min, float max, long size)
meshlib.Histogram assignFromAnother (meshlib.Histogram _other)
void addSample (float sample, java.lang.Long count)
void addHistogram (meshlib.Histogram hist)
meshlib.std_vector_size_t getBins ()
float getMin ()
float getMax ()
long getBinId (float sample)
meshlib.std_pair_float_float getBinMinMax (long binId)
long heapBytes ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

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

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ Histogram() [1/4]

meshlib.Histogram.Histogram ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ Histogram() [2/4]

meshlib.Histogram.Histogram ( )

Constructs an empty (default-constructed) instance.

Calls MR_Histogram_DefaultConstruct().

◆ Histogram() [3/4]

meshlib.Histogram.Histogram ( meshlib.Histogram _other)

Generated from constructor MR::Histogram::Histogram. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_Histogram_ConstructFromAnother().

◆ Histogram() [4/4]

meshlib.Histogram.Histogram ( float min,
float max,
long size )

Initialize histogram with minimum and maximum values, and number of bins Generated from constructor MR::Histogram::Histogram. The reference to the parameter size might be preserved in the constructed object.

Calls MR_Histogram_Construct().

Member Function Documentation

◆ addHistogram()

void meshlib.Histogram.addHistogram ( meshlib.Histogram hist)

Adds bins of input hist to this Generated from method MR::Histogram::addHistogram.

Calls MR_Histogram_addHistogram().

◆ addSample()

void meshlib.Histogram.addSample ( float sample,
java.lang.Long count )

Adds sample to corresponding bin Generated from method MR::Histogram::addSample.

Calls MR_Histogram_addSample().

◆ assignFromAnother()

meshlib.Histogram meshlib.Histogram.assignFromAnother ( meshlib.Histogram _other)

Generated from method MR::Histogram::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_Histogram_AssignFromAnother().

◆ getBinId()

long meshlib.Histogram.getBinId ( float sample)

Gets id of bin that inherits sample Generated from method MR::Histogram::getBinId.

Calls MR_Histogram_getBinId().

◆ getBinMinMax()

meshlib.std_pair_float_float meshlib.Histogram.getBinMinMax ( long binId)

Gets minimum and maximum of diapason inherited by bin Generated from method MR::Histogram::getBinMinMax.

Calls MR_Histogram_getBinMinMax().

◆ getBins()

meshlib.std_vector_size_t meshlib.Histogram.getBins ( )

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

Calls MR_Histogram_getBins().

◆ getMax()

float meshlib.Histogram.getMax ( )

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

Calls MR_Histogram_getMax().

◆ getMin()

float meshlib.Histogram.getMin ( )

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

Calls MR_Histogram_getMin().

◆ heapBytes()

long meshlib.Histogram.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::Histogram::heapBytes.

Calls MR_Histogram_heapBytes().


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