You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-1985 Modify regrmysql to use long double where practical and to use the latest algorithms for regr_xxx functions.
This commit is contained in:
@ -132,7 +132,7 @@ mcsv1_UDAF::ReturnCode regr_syy::evaluate(mcsv1Context* context, static_any::any
|
||||
long double sumy2 = data->sumy2;
|
||||
|
||||
long double var_popy = (sumy2 - (sumy * sumy / N)) / N;
|
||||
valOut = static_cast<double>(data->cnt * var_popy);
|
||||
valOut = static_cast<double>(N * var_popy);
|
||||
}
|
||||
return mcsv1_UDAF::SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user