MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / add

Method add

libraries/Histogram/histogram.cpp:46–55  ·  view source on GitHub ↗

adds a new value to the histogram - increasing

Source from the content-addressed store, hash-verified

44
45// adds a new value to the histogram - increasing
46void Histogram::add(const float value)
47{
48 if (_length > 0)
49 {
50 uint16_t index = find(value);
51 _data[index]++;
52 _count++;
53 }
54 // return index or count.
55}
56
57
58// adds a new value to the histogram - decreasing

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36