Category : scipy

I have implemented a 3D gaussian fit using scipy.optimize.leastsq and now I would like to tweak the arguments ftol and xtol to optimize the performances. However, I don’t understand the "units" of these two parameters in order to make a proper choice. Is it possible to calculate these two parameters from the results? That would ..

Read more

I have a dataframe(df) like this: no2 time 2013-09-01 08:27:16 0.3298 2013-09-01 08:31:02 0.3184 2013-09-01 08:32:31 0.2038 2013-09-01 08:35:14 0.2639 2013-09-01 08:36:47 0.2530 … … 2013-09-30 19:17:19 0.6376 2013-09-30 19:20:11 0.6505 2013-09-30 19:23:11 0.6102 2013-09-30 19:27:33 0.5788 2013-09-30 19:41:58 0.5223 8240 rows × 1 columns After applying a function… import matplotlib.pyplot as plt from scipy.interpolate ..

Read more

I am using scipy.signal to calculate the width of the different peaks. I have 100 values wrt to different time points. I am using following code to calculate the peak, then width. The problem is it is not considering the time on x axis while calculating the width. peaks_control, _ = find_peaks(x_control, height=2100) time_control = ..

Read more