Main Page | Modules | Data Structures | File List | Data Fields | Globals

massspec/peak2f.h

Go to the documentation of this file.
00001 #ifndef _PEAK_2F_H_ 00002 #define _PEAK_2F_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 00019 struct Peak2f 00020 { 00021 float rt; 00022 float moz; 00023 }; 00024 00025 typedef struct Peak2f Peak2f; 00026 00027 enum {PEAK2F_RT, PEAK2F_MOZ}; 00028 00029 00030 Peak2f Peak2f_new(float rt, float mz); 00031 00032 int Peak2f_isInsideInsets4f(Peak2f* peak, Insets4f* rect); 00033 void Peak2f_translateScan(Peak2f* peak, Experiment* s_expmnt, Experiment* q_expmnt); 00034 Peak2i Peak2f_convertToPeak2i(Peak2f* peak2f); 00035 Peak2i Peak2f_convertRealToDiscreteCoordinates(Peak2f peak, Experiment* expmnt); 00036 00037 00038 Peak2f* loadPeak2fArrayI (char* filename, int* size); 00039 00040 void Peak2fArray_fprint(FILE* fp, Peak2f* peak, int start, int stop); 00041 void Peak2fArray_translate(Peak2f* peaks, int size, int displace, int dim); 00042 void Peak2fArray_scale (Peak2f* peaks, int size, float scale , int dim); 00043 char** Peak2fArray_toString(Peak2f* peaks, int size, const char* format, int field); 00044 Peak2f* Peak2fArray_create(int size); 00045 Peak2i* Peak2iArray_copy(Peak2i* array, int nsize); 00046 void Peak2fArray_setElement (const void* array, int index, const void* data); 00047 Peak2i* Peak2fArray_convertToPeak2iArray(Peak2f* peaks2f, int nsize); 00048 void Peak2fArray_translateScan(Peak2f* array, int nsize, Experiment* s_expmnt, Experiment* q_expmnt); 00049 Peak2i* Peak2fArray_convertMeasurementToSampleCoordinates(Peak2f* array, int npeaks, Experiment* expmnt); 00050 Peak2f* Peak2fArray_merge(Peak2f* a, Peak2f* b, int n); 00051 00052 typedef union 00053 { 00054 Peak2i* i; 00055 Peak2f* f; 00056 } PeakArray; 00057 00058 #endif 00059 00060 00061 00062 00063

Generated on Sun Feb 13 01:05:58 2005 for MapQuant by doxygen 1.3.7