|
my_bool | corr_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
| Called before first usage of function. More...
|
|
void | corr_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 | corr_clear (UDF_INIT *initid, char *is_null, char *error) |
| Called at start of group. More...
|
|
void | corr_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Add a member of the group. More...
|
|
double | corr (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
| Retrieve correlation coefficient. Called at end of group. More...
|
|
void | corr_deinit (UDF_INIT *initid) |
| Called after last access to function. More...
|
|
Pearson correlation coeffient.
CREATE AGGREGATE FUNCTION corr RETURNS REAL SONAME 'libsqlstat.so';
SELECT corr(x,y) FROM mytab;
DROP FUNCTION corr;
Definition in file corr.c.