feat: RunningQuality - running SQI

This commit is contained in:
2026-03-09 18:38:21 +01:00
parent fe300dabd3
commit 95d1fee44d
4 changed files with 209 additions and 3 deletions

View File

@@ -20,7 +20,19 @@ namespace pd_signal {
void interp(std::vector<double>& y, std::vector<double>& x, std::vector<double>& xp, std::vector<double>& fp);
/** resample to BEAT_LEN */
void resample(std::vector<double> &out, std::vector<double> x, int beat_len);
void resample(std::vector<double> &out, std::vector<double> &x, int beat_len);
/**
* normalized cross-correlation of the two signals of same length.
* normalization factor is <c>1 / sqrt(\sum_i x_i^2 * \sum_i y_i^2)</c>
*/
double crossCorr(std::vector<double> &x, std::vector<double> &y);
/** clip 'val' to between 'a_min' and 'a_max'. */
double clip(double val, double a_min, double a_max);
/** two-dimensional mean of a collection of signals */
void mean(std::vector<double> &out, std::vector<std::vector<double> >& m);
}