peak2i.h

Go to the documentation of this file.
00001 #ifndef _PEAK_2I_H_
00002 #define _PEAK_2I_H_
00003 
00004 /* Copyright (c) Kyriacos Leptos and the President and Fellows of Harvard University
00005    Release Date: 2004-11-01
00006    Part of the MapQuant suite library "massspec.lib" 
00007 */
00008 
00024 struct Peak2i
00025 { 
00026     int rt_i; 
00027     int mz_j; 
00028 };  
00029 
00030 typedef struct Peak2i Peak2i;
00031 typedef struct Peak2i Point2i;
00032 typedef Peak2i* Peak2iArray;
00033 
00034 Peak2i      Peak2i_new(int rt_i, int mz_j);
00035 int         Peak2i_cmp(Peak2i p1, Peak2i p2);
00036 void        Peak2i_fprint(FILE* fp, Peak2i peak);
00037 void        Peak2i_fprintln(FILE* fp, Peak2i peak);
00038 int         Peak2i_isInsideRectangle4i(Peak2i peak, Rectangle4i rect);
00039 
00040 Peak2i*     Peak2iArray_create(int nsize);
00041 void        Peak2iArray_fprint(FILE* fp, Peak2i* peaks, int start, int stop);
00042 Peak2i*     Peak2iArray_copy(Peak2i* array, int nsize);
00043 void        Peak2iArray_sortByMzj(Peak2i* peaks, long nPeaks);
00044 
00045 float       Peak2iArray_calcAvgRTI(Peak2i* array, int size);
00046 void        Peak2iArray_translate(Peak2i* peaks, int size, int displace, int dim);
00047 Peak2i*     Peak2iArray_load(char* filename, int* size);
00048 
00049 
00050 #endif
00051 
00052 
00053 
00054 
00055 

Generated on Tue Feb 7 11:54:27 2006 for libmqobject by  doxygen 1.4.6