SDRPlusPlus/core/src/dsp/math/step.h

8 wiersze
130 B
C++

#pragma once
namespace dsp::math {
template <class T>
inline T step(T x) {
return (x > 0.0) ? 1.0 : -1.0;
}
}