1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Welford's algorithm STD and VAR on window functions

This commit is contained in:
Andrey Piskunov
2022-06-01 19:05:33 +03:00
parent c5fa27475d
commit 66c69c7609
6 changed files with 31809 additions and 15 deletions

View File

@ -40,8 +40,8 @@ class WF_stats : public WindowFunctionType
static boost::shared_ptr<WindowFunctionType> makeFunction(int, const string&, int, WindowFunctionColumn*);
protected:
long double fSum1;
long double fSum2;
long double fMean;
long double fM2sum;
uint64_t fCount;
double fStats;
};