|
HARDT - The Ham Radio DSP Toolkit
|
#include <hsignalleveloutput.h>
Public Attributes | |
| int | Max |
| int | Min |
| int | Avg |
| int | Db |
| int | AvgDb |
| int | S |
| int | AvgS |
| double | Sum |
The result of a signallevel calculation on one or more blocks of samples.
Max contains the largest seen sample value and Avg contains a tracked average that slowly moves toward the latest max value.
The level is calculated so that a maximum sample value contained in a block of samples that equals the maximum possible value for the selected sample format, will report as 54 DB or S 9. Avg contains the average over 10 blocks and AvgDb, AvgS contains the corresponding average signal level.
1 S degree equals 6 DB, so for 8 bit sample formats, the full range of db values and/or S degrees can not be obtained, the resolution is too low, so that you will experience sudden jumps in the calculated signal level. At 16 bit or higher the problem does not exists.
If you want to calculate the level differently, you can do that using the Max value.
| int HSignalLevelResult::Avg |
Average value of highest sample value seen in the lsat 10 processed blocks
| int HSignalLevelResult::AvgDb |
The average sample value over 10 blocks, in DB
| int HSignalLevelResult::AvgS |
The average sample value over 10 blocks, in S degress
| int HSignalLevelResult::Db |
The highest sample value, in DB
| int HSignalLevelResult::Max |
Highest sample value seen in the processed block(s)
| int HSignalLevelResult::Min |
Smallest sample value seen in the processed block(s)
| int HSignalLevelResult::S |
The highest sample value, in S degrees
| double HSignalLevelResult::Sum |
The sum of all samples values. This is a unqualified measurement, so the best use is to provide an instantaneous measurement of received signal values at a single point in time (and location). The value is not directly comparable with results removed in time or distance
1.8.17