MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / addSample

Method addSample

source/MRMesh/MRHistogram.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void Histogram::addSample( float sample, size_t count /*= 1*/ )
18{
19 sample = std::clamp( sample, min_, max_ );
20 bins_[getBinId( sample )] += count;
21}
22
23void Histogram::addHistogram( const Histogram& hist )
24{

Callers 1

actionMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected