The sums used for variances and covarianses could be calculated in the following way by using a JS library for matrices. Since these calculations are done roughly 60 times per second and have a high level of complexity they might be a good subject for future optimisation.
The sums used for variances and covarianses could be calculated in the following way by using a JS library for matrices. Since these calculations are done roughly 60 times per second and have a high level of complexity they might be a good subject for future optimisation.