Searched refs:sumxy (Results 1 – 1 of 1) sorted by relevance
444 zsl_real_t sumx, sumy, sumxy, sumxx, sumyy; in zsl_sta_linear_reg() local446 sumx = sumy = sumxy = sumxx = sumyy = 0.0; in zsl_sta_linear_reg()451 sumxy += x->data[i] * y->data[i]; in zsl_sta_linear_reg()456 c->slope = (x->sz * sumxy - sumx * sumy) / (x->sz * sumxx - sumx * sumx); in zsl_sta_linear_reg()458 c->correlation = (x->sz * sumxy - sumx * sumy) / in zsl_sta_linear_reg()