// // Created by david on 11.03.2026. // #ifndef PASADASUPERPROJECT_TEST_HELPERS_H #define PASADASUPERPROJECT_TEST_HELPERS_H #include "npy.hpp" #include "ssf_filter.h" #include #include template static std::vector apply_filter(T& filter, std::vector& x) { std::vector y; y.resize(x.size()); for (int i = 0; i < x.size(); i++) { y[i] = filter.filter(x[i]); } return y; } void npy_save(std::string path, std::vector& x); void npy_save(std::string path, std::vector& x); std::vector fetch_y_axis(npy::npy_data& acc); /** Returns the ssf_threshold as the filter output for debugging. */ class DebugSsfStepDetectorThreshold : public SsfStepDetector { public: DebugSsfStepDetectorThreshold(size_t len_refr); double filter(double val); }; #endif //PASADASUPERPROJECT_TEST_HELPERS_H