apop_conversions.c File Reference
Functions
- double * apop_vector_to_array (const gsl_vector *in)
- gsl_vector * apop_array_to_vector (double *in, int size)
- gsl_matrix * apop_vector_to_matrix (const gsl_vector *in, char row_col)
- gsl_matrix * apop_array_to_matrix (const double **in, const int rows, const int cols)
- apop_data * apop_array_to_data (const double **in, const int rows, const int cols)
- gsl_matrix * apop_line_to_matrix (double *line, int rows, int cols)
- apop_data * apop_line_to_data (double *in, int vsize, int rows, int cols)
- apop_data * apop_db_to_crosstab (char *tabname, char *r1, char *r2, char *datacol)
- void apop_crosstab_to_db (apop_data *in, char *tabname, char *row_col_name, char *col_col_name, char *data_col_name)
- gsl_vector * apop_vector_copy (const gsl_vector *in)
- gsl_matrix * apop_matrix_copy (const gsl_matrix *in)
- apop_data * apop_text_to_data (char *text_file, int has_row_names, int has_col_names, int *field_ends)
- int apop_text_to_db (char *text_file, char *tabname, int has_row_names, int has_col_names, char **field_names, int *field_ends)
- void apop_data_unpack (const gsl_vector *in, apop_data *d)
- gsl_vector * apop_data_pack (const apop_data *in, gsl_vector *out)
-
apop_data * apop_data_fill_base (apop_data *in, double ap[])
-
gsl_vector * apop_vector_fill_base (gsl_vector *in, double ap[])
-
gsl_matrix * apop_matrix_fill_base (gsl_matrix *in, double ap[])
Detailed Description
The various functions to convert from one format to another.
Function Documentation
| void apop_crosstab_to_db |
( |
apop_data * |
in, |
|
|
char * |
tabname, |
|
|
char * |
row_col_name, |
|
|
char * |
col_col_name, |
|
|
char * |
data_col_name | |
|
) |
| | |
| apop_data* apop_db_to_crosstab |
( |
char * |
tabname, |
|
|
char * |
r1, |
|
|
char * |
r2, |
|
|
char * |
datacol | |
|
) |
| | |
Give the name of a table in the database, and names of three of its columns: the x-dimension, the y-dimension, and the data. the output is a 2D matrix with rows indexed by r1 and cols by r2.
- Parameters:
-
| tabname | The database table I'm querying. Anything that will work inside a from clause is OK, such as a subquery in parens. |
| r1 | The column of the data set that will indicate the rows of the output crosstab |
| r2 | The column of the data set that will indicate the columns of the output crosstab |
| datacol | The column of the data set holding the data for the cells of the crosstab |
Autogenerated by doxygen on 23 Nov 2009.