match.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 //-----------------------------------------------------------------------------
00005 // CVS: $Revision: 3898 $, $Date: 2007-07-09 14:00:48 +0100 (Mon, 09 Jul 2007) $, $Author: NigelHambly $
00006 //-----------------------------------------------------------------------------
00007 #ifndef MATCH_H
00008 #define MATCH_H
00009 
00010 #include "datatypes.h"
00011 //-----------------------------------------------------------------------------
00014 #define MATCH_FAIL -1
00015 
00018 #define HANDSHAKE_FAIL -2
00019 //-----------------------------------------------------------------------------
00020 
00024 int bfind(IndexedList list[], int low, int high, double key);
00025 
00028 void getrange(IndexedList dec[], int nrecs, int idx, double tol,
00029         int *i1, int *i2, double dec0);
00030 
00033 double calc_metric(double asvalue);
00034 
00038 int* matchpairs(CartesianSet cartM[], IndexedList decM[], int nrecM,
00039                 CartesianSet cartS[], IndexedList decS[], int nrecS,
00040                 double matchradius);
00041 
00044 void handshake(int* ppM, int nrecM, int* ppS, int nrecS);
00045 //-----------------------------------------------------------------------------
00046 #endif
00047 //-----------------------------------------------------------------------------
00048 // Change log (incomplete):
00049 //
00050 //  4-Jul-2007,  NCH: Added this log trailer; added a new argument to
00051 //                    getrange to fix the search bug in the fundamental
00052 //                    pairing routine.
Generated on Mon Oct 4 10:39:50 2010 for WsaTools by  doxygen 1.6.3