PPL Logo

libs/ck-libs/metis/GKlib/test/fis.c File Reference

A simple frequent itemset discovery program to test GKlib's routines. More...

Go to the source code of this file.

Data Structures

struct  params_t

Functions

void print_init_info (params_t *params, gk_csr_t *mat)
void print_final_info (params_t *params)
params_tparse_cmdline (int argc, char *argv[])
void print_an_itemset (void *stateptr, int nitems, int *itemind, int ntrans, int *tranind)
int main (int argc, char *argv[])

Variables

static struct gk_option long_options []
static char helpstr [][100]
static char shorthelpstr [][100]


Detailed Description

A simple frequent itemset discovery program to test GKlib's routines.

Date:
6/12/2008
Author:
George
Version:
$Id: fis.c 11075 2011-11-11 22:31:52Z karypis $ 

Definition in file fis.c.


Function Documentation

void print_init_info ( params_t params,
gk_csr_t mat 
)

Function prototypes

This function prints run parameters

Definition at line 160 of file fis.c.

References params_t::filename, params_t::maxfreq, params_t::maxlen, params_t::minfreq, and params_t::minlen.

Referenced by main().

Here is the caller graph for this function:

void print_final_info ( params_t params  ) 

This function prints final statistics

Definition at line 181 of file fis.c.

References gk_GetCurMemoryUsed(), and gk_GetMaxMemoryUsed().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

params_t * parse_cmdline ( int  argc,
char *  argv[] 
)

This is the entry point of the command-line argument parser

Definition at line 194 of file fis.c.

References c, params_t::clabelfile, errexit(), params_t::filename, gk_fexists(), gk_getopt_long_only(), gk_malloc(), gk_optarg, gk_optind, gk_strdup(), helpstr, params_t::maxfreq, params_t::maxlen, params_t::minfreq, params_t::minlen, shorthelpstr, and params_t::silent.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void print_an_itemset ( void *  stateptr,
int  nitems,
int itemids,
int  ntrans,
int transids 
)

This is the callback function for the itemset discovery routine

Definition at line 268 of file fis.c.

References params_t::clabels, params_t::nitemsets, and params_t::silent.

Referenced by main().

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)


Variable Documentation

struct gk_option long_options[] [static]

Initial value:

 {
  {"minlen",        1,      0,      CMD_MINLEN},
  {"maxlen",        1,      0,      CMD_MAXLEN},
  {"minfreq",       1,      0,      CMD_MINFREQ},
  {"maxfreq",       1,      0,      CMD_MAXFREQ},
  {"silent",        0,      0,      CMD_SILENT},
  {"clabels",       1,      0,      CMD_CLABELFILE},
  {"help",          0,      0,      CMD_HELP},
  {0,               0,      0,      0}
}
Local variables

Definition at line 40 of file fis.c.

char helpstr[][100] [static]

Definition at line 55 of file fis.c.

Referenced by parse_cmdline().

char shorthelpstr[][100] [static]

Initial value:

 {
" ",
"   Usage: fis [options] <mat-file>",
"          use 'fis -help' for a summary of the options.",
""
}

Definition at line 88 of file fis.c.

Referenced by parse_cmdline().


Generated on Mon Sep 21 08:09:09 2020 for Charm++ by  doxygen 1.5.5