int32_t mean_i(int32_t *array, uint32_t n_elements)
Compute the mean value of an array This is implemented using floats to handle scaling of all variable...
int32_t variance_i(int32_t *array, uint32_t n_elements)
Compute the variance of an array of values (integer).
float variance_f(float *array, uint32_t n_elements)
Compute the variance of an array of values (float).
float sum_f(float *array, uint32_t n_elements)
Compute the sum array elements.
int32_t covariance_i(int32_t *array1, int32_t *array2, uint32_t n_elements)
Compute the covariance of two arrays V(X) = E[(X-E[X])(Y-E[Y])] = E[XY] - E[X]E[Y] where E[X] is the ...
float covariance_f(float *array1, float *array2, uint32_t n_elements)
Compute the covariance of two arrays V(X) = E[(X-E[X])(Y-E[Y])] = E[XY] - E[X]E[Y] where E[X] is the ...
float mean_f(float *arr, uint32_t n_elements)
Compute the mean value of an array (float)