|
ROHC compression/decompression library
|
Handle a rolling window of values for statistics. More...


Go to the source code of this file.
Data Structures | |
| struct | rohc_stats |
Functions | |
| void ROHC_EXPORT | rohc_stats_add (struct rohc_stats *const stats, const uint32_t value) |
| Add a new value in the given statistics context. | |
| uint32_t ROHC_EXPORT | rohc_stats_sum (const struct rohc_stats *const stats) |
| Compute the sum of all the recorded values. | |
| uint32_t ROHC_EXPORT | rohc_stats_mean (const struct rohc_stats *const stats) |
| Compute the mean of all the recorded values. | |
Handle a rolling window of values for statistics.
| void ROHC_EXPORT rohc_stats_add | ( | struct rohc_stats *const | stats, |
| const uint32_t | value | ||
| ) |
Add a new value in the given statistics context.
| stats | The statistics context |
| value | The value to add |
| uint32_t ROHC_EXPORT rohc_stats_mean | ( | const struct rohc_stats *const | stats | ) |
Compute the mean of all the recorded values.
| stats | The statistics context |
| uint32_t ROHC_EXPORT rohc_stats_sum | ( | const struct rohc_stats *const | stats | ) |
Compute the sum of all the recorded values.
This function is used for statistics.
| stats | The statistics context |
1.7.6.1