Main Page | File List

score.h

00001 #ifndef CUT_H
00002 #define CUT_H
00003 
00004 #include <gmp.h>
00005 #include <mpfr.h>
00006 
00007 /* initializes variables for scoring*/
00008 void score_initScoring(void);
00009 
00010 /* return 1 if porn 0 if not*/
00011 void score_getProbability(int verbose);
00012 
00013 /* return the inverse chi square function with df degrees of liberty */
00014 mpfr_t* score_getChi2(double chi, unsigned int df);
00015 
00016 /* return the number of occurences of the token in the page */
00017 unsigned int* score_getScore(char *token);
00018 
00019 /* stores the token in the temporary database */
00020 void score_storeToken(char *token, int type);
00021 
00022 /* closes the temporary database */
00023 void score_closedb(void);
00024 
00025 /* print a mpfr_t variable on the output */
00026 void print_mpfr(char *string, mpfr_t var);
00027 
00028 /* functions to sort arrays for display */
00029 void triRapide(double *t,int debut, int fin, int *tind);
00030 void partitionner(double *t, int debut, int fin, int *pPosition, int *tind);
00031 void echanger(double *px, double *py);
00032 void echangerInt(int *px, int *py);
00033 
00034 #endif

Generated on Tue May 31 14:22:44 2005 for filterFlex by  doxygen 1.3.9.1