mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-13 12:35:41 +02:00
More cleanup
This commit is contained in:
8
core/src/dsp/math/step.h
Normal file
8
core/src/dsp/math/step.h
Normal file
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
namespace dsp::math {
|
||||
template <class T>
|
||||
inline T step(T x) {
|
||||
return (x > 0.0) ? 1.0 : -1.0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user