Classes | Macros | Functions | Variables
fis.c File Reference

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

#include <GKlib.h>
Include dependency graph for fis.c:

Go to the source code of this file.

Classes

struct  params_t
 

Macros

#define CMD_CLABELFILE   6
 
#define CMD_HELP   10
 
#define CMD_MAXFREQ   4
 
#define CMD_MAXLEN   2
 
#define CMD_MINFREQ   3
 
#define CMD_MINLEN   1
 
#define CMD_SILENT   5
 

Functions

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

Variables

static char helpstr [][100]
 
static struct gk_option long_options []
 
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.

Macro Definition Documentation

◆ CMD_CLABELFILE

#define CMD_CLABELFILE   6

Definition at line 33 of file fis.c.

◆ CMD_HELP

#define CMD_HELP   10

Definition at line 34 of file fis.c.

◆ CMD_MAXFREQ

#define CMD_MAXFREQ   4

Definition at line 31 of file fis.c.

◆ CMD_MAXLEN

#define CMD_MAXLEN   2

Definition at line 29 of file fis.c.

◆ CMD_MINFREQ

#define CMD_MINFREQ   3

Definition at line 30 of file fis.c.

◆ CMD_MINLEN

#define CMD_MINLEN   1

Constants

Definition at line 28 of file fis.c.

◆ CMD_SILENT

#define CMD_SILENT   5

Definition at line 32 of file fis.c.

Function Documentation

◆ main()

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

the entry point

Definition at line 110 of file fis.c.

◆ parse_cmdline()

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.

◆ print_an_itemset()

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.

◆ print_final_info()

void print_final_info ( params_t params)

This function prints final statistics

Definition at line 181 of file fis.c.

◆ print_init_info()

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.

Variable Documentation

◆ helpstr

char helpstr[][100]
static

Definition at line 55 of file fis.c.

◆ long_options

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.

◆ shorthelpstr

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.

CMD_SILENT
#define CMD_SILENT
Definition: fis.c:32
CMD_MINFREQ
#define CMD_MINFREQ
Definition: fis.c:30
CMD_HELP
#define CMD_HELP
Definition: fis.c:34
CMD_MAXFREQ
#define CMD_MAXFREQ
Definition: fis.c:31
CMD_CLABELFILE
#define CMD_CLABELFILE
Definition: fis.c:33
CMD_MINLEN
#define CMD_MINLEN
Definition: fis.c:28
CMD_MAXLEN
#define CMD_MAXLEN
Definition: fis.c:29


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:47