Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parabolic fit features #166

Open
matwey opened this issue Jun 13, 2024 · 0 comments
Open

Parabolic fit features #166

matwey opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@matwey
Copy link

matwey commented Jun 13, 2024

Hi,

It would be great to have features extracted from parabolic (quadratic) fit similar to what we have from linear fit:

  1. Fit residual aka $\chi^2$
  2. Curve value in maximum (minimum) $m_0$
  3. Maximum (minimum) time moment $t_0$
  4. Acceleration $g$

The model is $m_i = m_0 + g \left( t_i - t_0 \right)^2$

Equations:

$$ \begin{bmatrix} \sum_i t^4_i & \sum_i t^3_i & \sum_i t^2_i \\ \sum_i t^3_i & \sum_i t^2_i & \sum_i t_i \\ \sum_i t^2_i & \sum_i t_i & N \end{bmatrix} \begin{bmatrix} a \ b \ c \end{bmatrix} = \begin{bmatrix} \sum_i t^2_i m_i \ \sum_i t_i m_i \ \sum_i m_i \end{bmatrix} $$

$g = a$
$t_0 = -\frac{b}{2a}$
$m_0 = c - \frac{b^2}{4a}$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants