MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Histogram Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, float min, float max, int size)
 
None __init__ (self, Histogram arg0)
 
None addHistogram (self, Histogram hist)
 
None addSample (self, float sample, int count=1)
 
int getBinId (self, float sample)
 
tuple[float, float] getBinMinMax (self, int binId)
 
std_vector_unsigned_long getBins (self)
 
float getMax (self)
 
float getMin (self)
 
int heapBytes (self)
 

Detailed Description

Generated from:  MR::Histogram

Simple class for calculating histogram
\\ingroup MathGroup

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.Histogram.__init__ ( self)

◆ __init__() [2/3]

None meshlib.mrmeshpy.Histogram.__init__ ( self,
float min,
float max,
int size )
Initialize histogram with minimum and maximum values, and number of bins

◆ __init__() [3/3]

None meshlib.mrmeshpy.Histogram.__init__ ( self,
Histogram arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addHistogram()

None meshlib.mrmeshpy.Histogram.addHistogram ( self,
Histogram hist )
Adds bins of input hist to this

◆ addSample()

None meshlib.mrmeshpy.Histogram.addSample ( self,
float sample,
int count = 1 )
Adds sample to corresponding bin

◆ getBinId()

int meshlib.mrmeshpy.Histogram.getBinId ( self,
float sample )
Gets id of bin that inherits sample

◆ getBinMinMax()

tuple[float, float] meshlib.mrmeshpy.Histogram.getBinMinMax ( self,
int binId )
Gets minimum and maximum of diapason inherited by bin

◆ getBins()

std_vector_unsigned_long meshlib.mrmeshpy.Histogram.getBins ( self)
Gets bins

◆ getMax()

float meshlib.mrmeshpy.Histogram.getMax ( self)
Gets maximum value of histogram

◆ getMin()

float meshlib.mrmeshpy.Histogram.getMin ( self)
Gets minimum value of histogram

◆ heapBytes()

int meshlib.mrmeshpy.Histogram.heapBytes ( self)
returns the amount of memory this object occupies on heap

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