8 : m_config(
std::move(config))
21 const auto& bytes = value.
as_bytes();
50 ?
static_cast<double>(
static_cast<int8_t
>(
b))
51 :
static_cast<double>(
b);
55 ?
static_cast<double>(
static_cast<int16_t
>(w))
56 :
static_cast<double>(w);
83 return pressed ? 1.0 : 0.0;
90 double abs_val = std::abs(centered);
97 double sign = (centered >= 0) ? 1.0 : -1.0;
100 return 0.5 + (sign * scaled * 0.5);
std::vector< double > normalized(const std::vector< double > &data, double target_peak)
Normalize single-channel data (non-destructive)