MCPcopy Create free account
hub / github.com/BirolLab/abyss / trimLow

Method trimLow

Common/Histogram.cpp:10–18  ·  view source on GitHub ↗

Remove samples less than the specified threshold. */

Source from the content-addressed store, hash-verified

8
9/** Remove samples less than the specified threshold. */
10Histogram Histogram::trimLow(T threshold) const
11{
12 Histogram h;
13 for (Histogram::Map::const_iterator it = m_map.begin();
14 it != m_map.end(); it++)
15 if (it->first >= threshold)
16 h.insert(it->first, it->second);
17 return h;
18}
19
20/** Trim off the bottom fraction/2 and top fraction/2 data points.
21 * At least (1 - fraction) of the data will remain.

Callers 4

scaffoldFunction · 0.80
Histogram.hFile · 0.80
passContiguityStatsValFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected