feat: RunningQuality - running SQI
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user