#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "glib.h"
#include "../io/fopen.c"
#include "readlines.h"
Defines | |
#define | BUFFSIZE 80 |
#define | FMT_CHK(x) if ((x) == NULL) { fprintf (stderr, "improperly formatted input; use nps-datacheck\n"); exit (1); } |
Functions | |
void | usage (char *progname) |
GHashTable * | build_inst_map (char *filename) |
void | fix_results (char **lines, int numlines, GHashTable *inst_map) |
char ** | enum_classes (char **lines, int numlines, GHashTable *class_lookup, int *numclasses) |
void | build_confu (int **matrix, char **lines, int numlines, GHashTable *class_lookup) |
void | print_matrix (int **matrix, char **classes, int numclasses) |
int | longest_length (char **classes, int numclasses) |
void | print_stats (int **matrix, char **classes, int numclasses) |
int | main (int argc, char **argv) |
#define BUFFSIZE 80 |
#define FMT_CHK | ( | x | ) | if ((x) == NULL) { fprintf (stderr, "improperly formatted input; use nps-datacheck\n"); exit (1); } |
void build_confu | ( | int ** | matrix, | |
char ** | lines, | |||
int | numlines, | |||
GHashTable * | class_lookup | |||
) |
GHashTable * build_inst_map | ( | char * | filename | ) |
char ** enum_classes | ( | char ** | lines, | |
int | numlines, | |||
GHashTable * | class_lookup, | |||
int * | numclasses | |||
) |
void fix_results | ( | char ** | lines, | |
int | numlines, | |||
GHashTable * | inst_map | |||
) |
int longest_length | ( | char ** | classes, | |
int | numclasses | |||
) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
void print_matrix | ( | int ** | matrix, | |
char ** | classes, | |||
int | numclasses | |||
) |
void print_stats | ( | int ** | matrix, | |
char ** | classes, | |||
int | numclasses | |||
) |
void usage | ( | char * | progname | ) |