You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
Hey, I'm working on updating a project that used your older version of this (https://github.com/arntanguy/sgsmooth), and I'm wanting to switch it over to use this version instead. However, I've found that I have no clue how I'm supposed to get the same outcome I used to get by using this library.
Here's what I used to have:
vector<double> data = {...}; // ~900 itemsint window_size = 91;
int degree = 3;
for (int i = 0; i < filter_passes; i++) {
data = sgsmooth(data, window_size, degree);
}
// data is now smoothed
I initially was going to use filter.filter(data), but then I found out that returned a double instead of a vector<double>, and I'm not sure what to do with that.
Any help would be appreciated, especially since I'm not too familiar with the actual math behind the smoothing.
The text was updated successfully, but these errors were encountered:
Hey, I'm working on updating a project that used your older version of this (https://github.com/arntanguy/sgsmooth), and I'm wanting to switch it over to use this version instead. However, I've found that I have no clue how I'm supposed to get the same outcome I used to get by using this library.
Here's what I used to have:
I initially was going to use
filter.filter(data)
, but then I found out that returned adouble
instead of avector<double>
, and I'm not sure what to do with that.Any help would be appreciated, especially since I'm not too familiar with the actual math behind the smoothing.
The text was updated successfully, but these errors were encountered: