Macro aether_primitives::assert_evm
source · macro_rules! assert_evm {
($actual:expr, $ref:expr) => { ... };
($actual:expr, $ref:expr, $evm_limit_db:expr) => { ... };
}
Expand description
Error Vector Magnitude assertion
Checks each element and panics if an element in the actual
EVM = 10 log (P_error/P_ref) => Error vector in relation to the actually expected signal in dB.
The error vector is defined as the vector between the reference symbol and the actually received signal.
We achieve this by computing the norm of (actual-ref)
If no EVM threshold is provided -80dB = 1e-8 = 10nano is used