Recipes_Dist.h
上传用户:szb0815
上传日期:2007-06-13
资源大小:338k
文件大小:1k
- //---------------------------------------------------------------------------
- #ifndef Recipes_DistH
- #define Recipes_DistH
- #include <recipes/nr.h>
- #include <recipes/nrutil.h>
- #define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))
- #define SWAP(a,b) temp=(a);(a)=(b);(b)=temp;
- //---------------------------------------------------------------------------
- //int ndatat;
- //float *xt,*yt,aa,abdevt;
extern int ndatat;
extern float *xt,*yt,aa,abdevt;
- void medfit(float x[], float y[], int ndata, float *a, float *b, float *abdev);
float rofunc(float b);
- float select(unsigned long k, unsigned long n, float arr[]);
- int ncom;
- float *pcom,*xicom,(*nrfunc)(float []);
- float fcircfit(float p[]);
- void fcircderiv(float p[],float xi[]);
- void sort2fi(unsigned long n, float arr[], int brr[]);
- void sort3fff(unsigned long n, float arr[], float brr[], float crr[]);
- #endif