Gets the average value in the buffer.
| 177 | /// Gets the average value in the buffer. |
| 178 | /// </summary> |
| 179 | T Average() const |
| 180 | { |
| 181 | ASSERT(HasItems()); |
| 182 | T result = _data[0]; |
| 183 | for (int32 i = 1; i < _count; i++) |
| 184 | { |
| 185 | result += _data[i]; |
| 186 | } |
| 187 | return result / _count; |
| 188 | } |
| 189 | }; |
no test coverage detected