Sample moment coefficient of skewness. More...
#include "sqlstat.h"
Go to the source code of this file.
Classes | |
struct | skewness_samp_storage |
Storage for sample moment coefficient of skewness. More... | |
Functions | |
my_bool | skewness_samp_init (UDF_INIT *initid, UDF_ARGS *args, char *message) |
Called before first usage of function. More... | |
void | skewness_samp_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 | skewness_samp_clear (UDF_INIT *initid, char *is_null, char *error) |
Called at start of group. More... | |
void | skewness_samp_add (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
Add a member of the group. More... | |
double | skewness_samp (UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error) |
Retrieve sample moment coefficient of skewness. Called at end of group. More... | |
void | skewness_samp_deinit (UDF_INIT *initid) |
Called after last access to function. More... | |
Sample moment coefficient of skewness.
CREATE AGGREGATE FUNCTION skewness_samp RETURNS REAL SONAME 'libsqlstat.so'; SELECT skewness_samp(x) FROM mytab; DROP FUNCTION skewness_samp;
Definition in file skewness_samp.c.
double skewness_samp | ( | UDF_INIT * | initid, |
UDF_ARGS * | args, | ||
char * | is_null, | ||
char * | error | ||
) |
Retrieve sample moment coefficient of skewness. Called at end of group.
initid | function description |
args | argument values |
is_null | result is NULL |
error | error message |
Definition at line 164 of file skewness_samp.c.
void skewness_samp_add | ( | UDF_INIT * | initid, |
UDF_ARGS * | args, | ||
char * | is_null, | ||
char * | error | ||
) |
Add a member of the group.
The counter and sums are updated
initid | function description |
args | argument values |
is_null | |
error | error message |
Definition at line 130 of file skewness_samp.c.
void skewness_samp_clear | ( | UDF_INIT * | initid, |
char * | is_null, | ||
char * | error | ||
) |
Called at start of group.
void skewness_samp_clear(UDF_INIT *initid, char *is_null, char *error) The counter and sums are cleared.
initid | function description |
is_null | |
error | error message |
Definition at line 111 of file skewness_samp.c.
void skewness_samp_deinit | ( | UDF_INIT * | initid | ) |
Called after last access to function.
Deallocate memory for counter and sums.
initid |
Definition at line 201 of file skewness_samp.c.
my_bool skewness_samp_init | ( | UDF_INIT * | initid, |
UDF_ARGS * | args, | ||
char * | message | ||
) |
Called before first usage of function.
Check parameters.
Indicate type of return value.
Allocate memory for counter and sums.
initid | function description |
args | parameters |
message | error message |
Definition at line 58 of file skewness_samp.c.
void skewness_samp_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 97 of file skewness_samp.c.