CroCo
07-09-2013, 01:16 AM
I've bought the code. I have a txt file which contains data. The sample rate is 1kHz (0.001 second). Now I want to smooth these data. All I know so far is to use savgol().
Sample
0
-19.2458
2.74941
0
-19.2458
2.74941
-19.2458
2.74941
-19.2458
-35.7214
-148.393
2.79779
-16.4941
void savgol(VecDoub_O &c, const Int np, const Int nl, const Int nr, const Int ld, const Int m)
In this example, how can I use VecDoub_O to store my data and pass them? As far as I know VecDoub_O is a vector but it doesn't allow me to use push_back() method. Any suggestions!
Sample
0
-19.2458
2.74941
0
-19.2458
2.74941
-19.2458
2.74941
-19.2458
-35.7214
-148.393
2.79779
-16.4941
void savgol(VecDoub_O &c, const Int np, const Int nl, const Int nr, const Int ld, const Int m)
In this example, how can I use VecDoub_O to store my data and pass them? As far as I know VecDoub_O is a vector but it doesn't allow me to use push_back() method. Any suggestions!