statistics.h

00001 /**********************************************************
00002 ***********************************************************
00003 *               European Southern Observatory
00004 *            VLTI MIDI Data Reduction Software
00005 *
00006 * Module name:  statistics.h
00007 * Description:  Contains the prototypes for all statistical 
00008 *               computations
00009 *
00010 * History:      
00011 * 22-Dec-03     (csabet) Created
00012 ***********************************************************
00013 **********************************************************/
00014 #ifndef _STATISTICS_H
00015 #define _STATISTICS_H
00016 
00017 /**********************************************************
00018 *   Include files
00019 **********************************************************/
00020 
00021 /**********************************************************
00022 *   Constant definitions
00023 **********************************************************/
00024 
00025 /**********************************************************
00026 *   Type definitions 
00027 **********************************************************/
00028 
00029 /**********************************************************
00030 *   Global Variables 
00031 **********************************************************/
00032 
00033 /**********************************************************
00034 *   Function Prototypes
00035 **********************************************************/
00036 float signalPeak (
00037     float   *signal,
00038     int     start,
00039     int     end,
00040     int     *peakIndex);
00041 
00042 void removeDc (
00043     int     size,
00044     float   *inArray,
00045     float   *outArray);
00046 
00047 float signalMean (
00048     float   *signal,
00049     int     start,
00050     int     end);
00051 
00052 float signalVariance (
00053     float   *signal,
00054     int     start,
00055     int     end,
00056     float   *standDev);
00057 
00058 float signalMedian (
00059     float   *signal,
00060     int     start,
00061     int     end);
00062 
00063 void signalSortInt (
00064     int *signal,
00065     int start,
00066     int end);
00067     
00068 void signalSort (
00069     float   *signal,
00070     int     start, 
00071     int     end);
00072 
00073 void makeStats(
00074     float   *data,
00075     int     numdata,
00076     float   *mean,
00077     float   *rms);
00078 
00079 void midiGetLinearFit (
00080     double  *x,
00081     double  *y,
00082     int     ndata,
00083     float   sig,
00084     int     mwt,
00085     float   *a,
00086     float   *b,
00087     float   *siga,
00088     float   *sigb,
00089     float   *chi2,
00090     float   *q,
00091     int     *error);
00092 
00093 float midiGoodnessOfFit (
00094     float   a,
00095     float   x,
00096     int     *error);
00097 
00098 void gser (
00099     float   *gamser,
00100     float   a,
00101     float   x,
00102     float   *gln,
00103     int     *error);
00104 
00105 float gammln (
00106     float   xx);
00107 
00108 void gcf (
00109     float   *gammcf,
00110     float   a,
00111     float   x,
00112     float   *gln,
00113     int     *error);
00114     
00115 /*********************************************************/
00116 #endif
00117 /*********************************************************/
00118 /*********************************************************/
00119 

Generated on 5 Mar 2013 for MIDI Pipeline Reference Manual by  doxygen 1.6.1