Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gaussfit.c File Reference
#include "ds_extern.h"
#include "ds_proto.h"

Go to the source code of this file.

Macros

#define GNPARM   100
 
#define SWAP(a, b)   {float temp=(a);(a)=(b);(b)=temp;}
 
#define ITMAX   100
 
#define EPS   3.0e-7
 

Functions

int nrerror (char *error_text)
 
float * vector (int nl, int nh)
 
int * ivector (int nl, int nh)
 
float ** matrix (int nrl, int nrh, int ncl, int nch)
 
int free_vector (float *v, int nl)
 
int free_ivector (int *v, int nl)
 
int free_matrix (float **m, int nrl, int nrh, int ncl)
 
int gaussj (a, int n,**b, int m)
 
int mrqmin (x, y, sig, int ndata, a, int ma, lista, int mfit, covar, alpha,*chisq, void(*funcs)(),*alamda)
 
int mrqcof (x, y, sig, int ndata, a, int ma, lista, int mfit, alpha, beta,*chisq, void(*funcs)())
 
int covsrt (covar, int ma, lista, int mfit)
 
float gammq (float a, float x)
 
int gser (float *gamser, float a, float x, float *gln)
 
int gcf (float *gammcf, float a, float x, float *gln)
 
float gammln (float xx)
 
void fgauss (float x, float *a, float *y, float *dyda)
 
int gauss_fit (float *x, float *y, float *sig, int npts, float *a)
 

Macro Definition Documentation

#define EPS   3.0e-7

Definition at line 487 of file gaussfit.c.

#define GNPARM   100

Definition at line 4 of file gaussfit.c.

#define ITMAX   100

Definition at line 486 of file gaussfit.c.

#define SWAP (   a,
  b 
)    {float temp=(a);(a)=(b);(b)=temp;}

Definition at line 6 of file gaussfit.c.

Function Documentation

int covsrt ( covar  ,
int  ma,
lista  ,
int  mfit 
)

Definition at line 321 of file gaussfit.c.

void fgauss ( float  x,
float *  a,
float *  y,
float *  dyda 
)

Definition at line 621 of file gaussfit.c.

int free_ivector ( int *  v,
int  nl 
)

Definition at line 90 of file gaussfit.c.

int free_matrix ( float **  m,
int  nrl,
int  nrh,
int  ncl 
)

Definition at line 100 of file gaussfit.c.

int free_vector ( float *  v,
int  nl 
)

Definition at line 80 of file gaussfit.c.

float gammln ( float  xx)

Definition at line 564 of file gaussfit.c.

float gammq ( float  a,
float  x 
)

Definition at line 463 of file gaussfit.c.

int gauss_fit ( float *  x,
float *  y,
float *  sig,
int  npts,
float *  a 
)

Definition at line 647 of file gaussfit.c.

int gaussj ( a  ,
int  n,
**  b,
int  m 
)

Definition at line 115 of file gaussfit.c.

int gcf ( float *  gammcf,
float  a,
float  x,
float*  gln 
)

Definition at line 524 of file gaussfit.c.

int gser ( float *  gamser,
float  a,
float  x,
float *  gln 
)

Definition at line 489 of file gaussfit.c.

int* ivector ( int  nl,
int  nh 
)

Definition at line 39 of file gaussfit.c.

float** matrix ( int  nrl,
int  nrh,
int  ncl,
int  nch 
)

Definition at line 57 of file gaussfit.c.

int mrqcof ( x  ,
y  ,
sig  ,
int  ndata,
a  ,
int  ma,
lista  ,
int  mfit,
alpha  ,
beta  ,
*  chisq,
void (*)()  funcs 
)

Definition at line 278 of file gaussfit.c.

int mrqmin ( x  ,
y  ,
sig  ,
int  ndata,
a  ,
int  ma,
lista  ,
int  mfit,
covar  ,
alpha  ,
*  chisq,
void (*)()  funcs,
*  alamda 
)

Definition at line 196 of file gaussfit.c.

int nrerror ( char *  error_text)

Definition at line 9 of file gaussfit.c.

float* vector ( int  nl,
int  nh 
)

Definition at line 21 of file gaussfit.c.