util/nps-balaccuracy.c File Reference

#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 Documentation

#define BUFFSIZE   80
#define FMT_CHK (  )     if ((x) == NULL) { fprintf (stderr, "improperly formatted input; use nps-datacheck\n"); exit (1); }

Function Documentation

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  ) 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3