GODataMatrix

GODataMatrix

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GOData
        ╰── GODataMatrix
            ╰── GODataMatrixVal

Description

Functions

go_data_matrix_get_size ()

GODataMatrixSize
go_data_matrix_get_size (GODataMatrix *mat);


go_data_matrix_get_values ()

double *
go_data_matrix_get_values (GODataMatrix *mat);


go_data_matrix_get_value ()

double
go_data_matrix_get_value (GODataMatrix *mat,
                          unsigned  i,
                          unsigned  j);


go_data_matrix_get_str ()

char *
go_data_matrix_get_str (GODataMatrix *mat,
                        unsigned  i,
                        unsigned  j);


go_data_matrix_get_minmax ()

void
go_data_matrix_get_minmax (GODataMatrix *mat,
                           double *min,
                           double *max);

Types and Values

GODataMatrix

typedef struct _GODataMatrix GODataMatrix;


GODataMatrixClass

typedef struct {
	GODataClass base;

	void	 (*load_size)    (GODataMatrix *vec);
	void	 (*load_values) (GODataMatrix *vec);
	double	 (*get_value)   (GODataMatrix *mat, unsigned i, unsigned j);
	char *(*get_str) (GODataMatrix *mat, unsigned i, unsigned j);
} GODataMatrixClass;


GODataMatrixSize

typedef struct {
	int rows; /* negative if dirty, includes missing values */
	int columns; /* negative if dirty, includes missing values */
} GODataMatrixSize;


GO_DATA_MATRIX_SIZE_CACHED

#define GO_DATA_MATRIX_SIZE_CACHED GO_DATA_SIZE_CACHED