mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-10-17 03:10:01 +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