Gini coefficient. More...

Go to the source code of this file.
Classes | |
| struct | sqlstat::Item |
| struct | sqlstat::ItemComperator |
| struct | sqlstat::gini_storage |
Typedefs | |
|
typedef std::multiset< Item, ItemComperator > | sqlstat::ItemSet |
Functions | |
| my_bool | gini_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
| Called before first usage of function. More... | |
| void | gini_reset (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Reset function and add first group member Calls clear and add. More... | |
| void | gini_clear (UDF_INIT *initid, char *is_null, char *error) |
| Called at start of group. More... | |
| void | gini_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Add a member of the group. More... | |
| double | gini (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Retrieve gini. Called at end of group. More... | |
| void | gini_deinit (UDF_INIT *initid) |
| Called after last access to function. More... | |
Gini coefficient.
CREATE AGGREGATE FUNCTION gini RETURNS REAL SONAME 'libsqlstat.so';
SELECT gini(x, w) FROM mytab;
DROP FUNCTION gini;
Definition in file gini.cc.
| double gini | ( | UDF_INIT * | initid, |
| UDF_ARGS * | args, | ||
| char * | is_null, | ||
| char * | error | ||
| ) |
| void gini_add | ( | UDF_INIT * | initid, |
| UDF_ARGS * | args, | ||
| char * | is_null, | ||
| char * | error | ||
| ) |
| void gini_clear | ( | UDF_INIT * | initid, |
| char * | is_null, | ||
| char * | error | ||
| ) |
| gini_deinit | ( | UDF_INIT * | initid | ) |
| my_bool gini_init | ( | UDF_INIT * | initid, |
| UDF_ARGS * | args, | ||
| char * | message | ||
| ) |
| void gini_reset | ( | UDF_INIT * | initid, |
| UDF_ARGS * | args, | ||
| char * | is_null, | ||
| char * | error | ||
| ) |
Reset function and add first group member Calls clear and add.
| initid | function description |
| args | argument values |
| is_null | |
| error | error message |
Definition at line 115 of file gini.cc.

1.8.8