MIDI Pipeline Reference Manual  2.8.3
estimationFrg.h
1 /**********************************************************
2 ***********************************************************
3 * European Southern Observatory
4 * VLTI MIDI Data Reduction Software
5 *
6 * Module name: estimationFrg.h
7 * Description:
8 *
9 *
10 * History:
11 * 16-Jul-04 (csabet) Added more prototypes
12 * 12-Dec-03 (csabet) Added more prototypes
13 * 03-Sep-03 (csabet) Created the prototypes for Jeff. Further modification
14 * shall be his responsibility
15 ***********************************************************
16 **********************************************************/
17 #ifndef _ESTIMATION_FRG_H
18 #define _ESTIMATION_FRG_H
19 
20 /**********************************************************
21 * Include files
22 **********************************************************/
23 #include "midiLib.h"
24 
25 /**********************************************************
26 * Constant definitions
27 **********************************************************/
28 
29 /**********************************************************
30 * Global Variables
31 **********************************************************/
32 
33 /**********************************************************
34 * Type definitions
35 **********************************************************/
36 
37 /**********************************************************
38 * Function Prototypes
39 **********************************************************/
40 void estimateFringe (
41  MidiFiles *fileNames,
42  FilterData *filterinfo,
43  CompressedData *compressed,
44  ImageFormat *format,
45  float *freqCal,
46  float *dispRawVis,
47  float *dispRawVisErr,
48  int *error);
49 
50 int getChannelSpectrum (
51  int channel,
52  int lowFreqIndex,
53  int highFreqIndex,
54  int *rejectList,
55  float *indata1,
56  float *indata2,
57  ImageFormat *format,
58  float *output,
59  float *Peakvector);
60 
61 void ProcessSpectrumEachChannel (
62  MidiFiles *fileNames,
63  FilterData *filterinfo,
64  CompressedData *compressed,
65  ImageFormat *format,
66  float *dispRawVis,
67  float *dispRawVisErr,
68  float *freqCal,
69  int *error);
70 
71 void findSpectralPeak (
72  float *data,
73  int lofreqindex,
74  int hifreqindex,
75  float *peakch,
76  float *peakinterp);
77 
78 float analyseSpectrum (
79  ImageFormat *format,
80  float fringeFreq,
81  float *spectrum,
82  float calib,
83  float *fringePowerErr);
84 
85 /*********************************************************/
86 #endif
87 /*********************************************************/
88