HARDT - The Ham Radio DSP Toolkit
Public Attributes | List of all members
HSignalLevelResult Struct Reference

#include <hsignalleveloutput.h>

Public Attributes

int Max
 
int Min
 
int Avg
 
int Db
 
int AvgDb
 
int S
 
int AvgS
 
double Sum
 

Detailed Description

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.

Examples
saq.cpp.

Member Data Documentation

◆ Avg

int HSignalLevelResult::Avg

Average value of highest sample value seen in the lsat 10 processed blocks

◆ AvgDb

int HSignalLevelResult::AvgDb

The average sample value over 10 blocks, in DB

◆ AvgS

int HSignalLevelResult::AvgS

The average sample value over 10 blocks, in S degress

◆ Db

int HSignalLevelResult::Db

The highest sample value, in DB

◆ Max

int HSignalLevelResult::Max

Highest sample value seen in the processed block(s)

◆ Min

int HSignalLevelResult::Min

Smallest sample value seen in the processed block(s)

◆ S

int HSignalLevelResult::S

The highest sample value, in S degrees

Examples
saq.cpp.

◆ Sum

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


The documentation for this struct was generated from the following file: