Smorodov / Multitarget-tracker

Multiple Object Tracker, Based on Hungarian algorithm + Kalman filter.
Apache License 2.0
2.17k stars 647 forks source link

CheckStatic function related math (sharing) #339

Open HaronCHou opened 3 years ago

HaronCHou commented 3 years ago

template<typename T, typename CONT> void get_lin_regress_params( const CONT& in_data, size_t start_pos, size_t in_data_size, T& kx, T& bx, T& ky, T& by)

this function can translate to math formula below:
a typical linear regression, Y=αX, Y is linear to X, then α can be calculated by α=E(XY)/E(X^2)。

image

image this is used for centralize, to remove mean value of X and Y

image

I don't know if this is right! But still excited about recongnized this formula!

Hope any wrong analysis could be corrects!

Nuzhny007 commented 3 years ago

Hi! Your formulas look correct.