adds a new value to the histogram - increasing
| 44 | |
| 45 | // adds a new value to the histogram - increasing |
| 46 | void 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 |