One expected component of the ideal series, and what was measured where it landed. More...
#include <audio_spectrum.hpp>
Public Attributes | |
| int | index = 0 |
| h — 1 is the fundamental. | |
| ComponentClass | component_class = ComponentClass::harmonic |
| double | source_hz = 0.0 |
| h · f0: where it would sit at infinite fs. | |
| double | hz = 0.0 |
| Where it actually landed (== source_hz for a harmonic; the fold site for an alias). | |
| double | amplitude = 0.0 |
| Linear amplitude from the joint fit, in the SAME units as the input samples — directly comparable to the fundamental's. | |
| double | db_below_fundamental = 0.0 |
| 20·log10(amplitude / fundamental). | |
| bool | in_band = true |
| Inside the measurement band — i.e. | |
| bool | resolved = true |
| False when this component's landing site could not be separated from another component's, from DC, or from Nyquist (see AliasOptions::min_separation_bins). | |
One expected component of the ideal series, and what was measured where it landed.
| double pulp::test::audio::AliasComponent::amplitude = 0.0 |
Linear amplitude from the joint fit, in the SAME units as the input samples — directly comparable to the fundamental's.
Meaningless when resolved is false.
| ComponentClass pulp::test::audio::AliasComponent::component_class = ComponentClass::harmonic |
| double pulp::test::audio::AliasComponent::db_below_fundamental = 0.0 |
20·log10(amplitude / fundamental).
| double pulp::test::audio::AliasComponent::hz = 0.0 |
Where it actually landed (== source_hz for a harmonic; the fold site for an alias).
| bool pulp::test::audio::AliasComponent::in_band = true |
| int pulp::test::audio::AliasComponent::index = 0 |
h — 1 is the fundamental.
| bool pulp::test::audio::AliasComponent::resolved = true |
False when this component's landing site could not be separated from another component's, from DC, or from Nyquist (see AliasOptions::min_separation_bins).
amplitude and db_below_fundamental are NOT populated — a gate must treat an unresolved in-band alias as INCONCLUSIVE, never as a pass.
| double pulp::test::audio::AliasComponent::source_hz = 0.0 |
h · f0: where it would sit at infinite fs.