portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
42 stars 27 forks source link

Save polynomial fit coefficients for fish tail instead of segment angles and tail sum #47

Open vilim opened 4 years ago

vilim commented 4 years ago

Has to be verified, but in my investigations a 3rd degree polynomial captures everything interesting and is robust to missing segments. np.polynomial.polyfit is also very fast.

vigji commented 4 years ago

Still, it will add another layer before data are saved, I think most users would not want that. Although one could argue that what is saved already comes from an interpolation?