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

massspec/filter.h

Go to the documentation of this file.
00001 #ifndef _FILTER_H_ 00002 #define _FILTER_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 MQFilter 00020 { 00021 unsigned filter_dimension : 1; 00022 char* szFilterType; 00023 int ipar1; 00024 int ipar2; 00025 int ipar3; 00026 float fpar1; 00027 float fpar2; 00028 }; 00029 00030 typedef struct MQFilter MQFilter; 00031 00032 int MQFilter_init(MQFilter* filter, char* filterstring); 00033 float* MQFilter_getResponseFunctionZF(MQFilter* filter, int signal_size, int *zf_size); 00034 float* Filter_getResponseVector(char* szFilter, int data_size, int* zf_size); 00035 float* Signal_zeroFillFloatArray(float* array, int size, int zf_size); 00036 int getCeilPower(int val, int pow); 00037 void consoleNewFilter(char* szNewFilter); 00038 void consoleDeleteFilter(char* szFilter); 00039 char* extractFilterType(char* filter, char* filterType, int* par1, int* par2, int* par3); 00040 int applyFilter(Map2D* mapSource, Map2D* mapDest, char* szFilter); 00041 int applyFilterToMassChrm(float* mcSource, int nSourceSize, float** mcDest, Experiment* expmnt, char* szFilter); 00042 float* getGaussResponse(int m, int n); 00043 float* getGaussianResponseSD(float sd, int* m, int size, int* zf, float avg_sampl_time); 00044 float* getDeltaResponse(int m, int n); 00045 float* getBoxCarResponse(int m, int n); 00046 int isFilterValid(char* filter); 00047 00048 int Map2D_applyFilter(Map2D* pMap, char* szFilter, int nDimension); 00049 00050 void correlation (float data[], float response[], unsigned long n, float ans[]); 00051 void convolution (float data[], float response[], unsigned long n, float ans[]); 00052 void deconvolution(float data[], float response[], unsigned long n, float ans[]); 00053 00054 float* wrap_around(float a[], int N); 00055 00056 #endif 00057

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