Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
17
void Histogram::addSample( float sample, size_t count /*= 1*/ )
18
{
19
sample = std::clamp( sample, min_, max_ );
20
bins_[getBinId( sample )] += count;
21
}
22
23
void Histogram::addHistogram( const Histogram& hist )
24
{
Callers
1
action
Method · 0.80
Calls
1
clamp
Function · 0.85
Tested by
no test coverage detected