DAS  3.1.6 - 18/09/2017
Marq.h
Go to the documentation of this file.
1 #ifndef _NR_H_
2 #define _NR_H_
3 #ifndef _FCOMPLEX_DECLARE_T_
4 typedef struct FCOMPLEX {float r,i;} fcomplex;
5 #define _FCOMPLEX_DECLARE_T_
6 #endif /* _FCOMPLEX_DECLARE_T_ */
7 #ifndef _ARITHCODE_DECLARE_T_
8 typedef struct {
9 unsigned long *ilob,*iupb,*ncumfq,jdif,nc,minint,nch,ncum,nrad;
10 } arithcode;
11 #define _ARITHCODE_DECLARE_T_
12 #endif /* _ARITHCODE_DECLARE_T_ */
13 #ifndef _HUFFCODE_DECLARE_T_
14 typedef struct {
15 unsigned long *icod,*ncod,*left,*right,nch,nodemax;
16 } huffcode;
17 #define _HUFFCODE_DECLARE_T_
18 #endif /* _HUFFCODE_DECLARE_T_ */
19 #include <stdio.h>
20 #if defined(__STDC__) || defined(ANSI) || defined(NRANSI) /* ANSI */
21 void addint(double **uf, double **uc, double **res, int nf);
22 void airy(float x, float *ai, float *bi, float *aip, float *bip);
23 void amebsa(float **p, float y[], int ndim, float pb[], float *yb,
24 float ftol, float (*funk)(float []), int *iter, float temptr);
25 void amoeba(float **p, float y[], int ndim, float ftol,
26 float (*funk)(float []), int *iter);
27 float amotry(float **p, float y[], float psum[], int ndim,
28 float (*funk)(float []), int ihi, float fac);
29 float amotsa(float **p, float y[], float psum[], int ndim, float pb[],
30 float *yb, float (*funk)(float []), int ihi, float *yhi, float fac);
31 void anneal(float x[], float y[], int iorder[], int ncity);
32 double anorm2(double **a, int n);
33 void arcmak(unsigned long nfreq[], unsigned long nchh, unsigned long nradd,
34 arithcode *acode);
35 void arcode(unsigned long *ich, unsigned char **codep, unsigned long *lcode,
36 unsigned long *lcd, int isign, arithcode *acode);
37 void arcsum(unsigned long iin[], unsigned long iout[], unsigned long ja,
38 int nwk, unsigned long nrad, unsigned long nc);
39 void asolve(unsigned long n, double b[], double x[], int itrnsp);
40 void atimes(unsigned long n, double x[], double r[], int itrnsp);
41 void avevar(float data[], unsigned long n, float *ave, float *var);
42 void balanc(float **a, int n);
43 void banbks(float **a, unsigned long n, int m1, int m2, float **al,
44 unsigned long indx[], float b[]);
45 void bandec(float **a, unsigned long n, int m1, int m2, float **al,
46 unsigned long indx[], float *d);
47 void banmul(float **a, unsigned long n, int m1, int m2, float x[], float b[]);
48 void bcucof(float y[], float y1[], float y2[], float y12[], float d1,
49 float d2, float **c);
50 void bcuint(float y[], float y1[], float y2[], float y12[],
51 float x1l, float x1u, float x2l, float x2u, float x1,
52 float x2, float *ansy, float *ansy1, float *ansy2);
53 void beschb(double x, double *gam1, double *gam2, double *gampl,
54 double *gammi);
55 float bessi(int n, float x);
56 float bessi0(float x);
57 float bessi1(float x);
58 void bessik(float x, float xnu, float *ri, float *rk, float *rip,
59 float *rkp);
60 float bessj(int n, float x);
61 float bessj0(float x);
62 float bessj1(float x);
63 void bessjy(float x, float xnu, float *rj, float *ry, float *rjp,
64 float *ryp);
65 float bessk(int n, float x);
66 float bessk0(float x);
67 float bessk1(float x);
68 float bessy(int n, float x);
69 float bessy0(float x);
70 float bessy1(float x);
71 float beta(float z, float w);
72 float betacf(float a, float b, float x);
73 float betai(float a, float b, float x);
74 float bico(int n, int k);
75 void bksub(int ne, int nb, int jf, int k1, int k2, float ***c);
76 float bnldev(float pp, int n, long *idum);
77 float brent(float ax, float bx, float cx,
78 float (*f)(float), float tol, float *xmin);
79 void broydn(float x[], int n, int *check,
80 void (*vecfunc)(int, float [], float []));
81 void bsstep(float y[], float dydx[], int nv, float *xx, float htry,
82 float eps, float yscal[], float *hdid, float *hnext,
83 void (*derivs)(float, float [], float []));
84 void caldat(long julian, int *mm, int *id, int *iyyy);
85 void chder(float a, float b, float c[], float cder[], int n);
86 float chebev(float a, float b, float c[], int m, float x);
87 void chebft(float a, float b, float c[], int n, float (*func)(float));
88 void chebpc(float c[], float d[], int n);
89 void chint(float a, float b, float c[], float cint[], int n);
90 float chixy(float bang);
91 void choldc(float **a, int n, float p[]);
92 void cholsl(float **a, int n, float p[], float b[], float x[]);
93 void chsone(float bins[], float ebins[], int nbins, int knstrn,
94 float *df, float *chsq, float *prob);
95 void chstwo(float bins1[], float bins2[], int nbins, int knstrn,
96 float *df, float *chsq, float *prob);
97 void cisi(float x, float *ci, float *si);
98 void cntab1(int **nn, int ni, int nj, float *chisq,
99 float *df, float *prob, float *cramrv, float *ccc);
100 void cntab2(int **nn, int ni, int nj, float *h, float *hx, float *hy,
101 float *hygx, float *hxgy, float *uygx, float *uxgy, float *uxy);
102 void convlv(float data[], unsigned long n, float respns[], unsigned long m,
103 int isign, float ans[]);
104 void copy(double **aout, double **ain, int n);
105 void correl(float data1[], float data2[], unsigned long n, float ans[]);
106 void cosft(float y[], int n, int isign);
107 void cosft1(float y[], int n);
108 void cosft2(float y[], int n, int isign);
109 void covsrt(float **covar, int ma, int ia[], int mfit);
110 void crank(unsigned long n, float w[], float *s);
111 void cyclic(float a[], float b[], float c[], float alpha, float beta,
112 float r[], float x[], unsigned long n);
113 void daub4(float a[], unsigned long n, int isign);
114 float dawson(float x);
115 float dbrent(float ax, float bx, float cx,
116 float (*f)(float), float (*df)(float), float tol, float *xmin);
117 void ddpoly(float c[], int nc, float x, float pd[], int nd);
118 int decchk(char string[], int n, char *ch);
119 void derivs(float x, float y[], float dydx[]);
120 float df1dim(float x);
121 void dfour1(double data[], unsigned long nn, int isign);
122 void dfpmin(float p[], int n, float gtol, int *iter, float *fret,
123 float (*func)(float []), void (*dfunc)(float [], float []));
124 float dfridr(float (*func)(float), float x, float h, float *err);
125 void dftcor(float w, float delta, float a, float b, float endpts[],
126 float *corre, float *corim, float *corfac);
127 void dftint(float (*func)(float), float a, float b, float w,
128 float *cosint, float *sinint);
129 void difeq(int k, int k1, int k2, int jsf, int is1, int isf,
130 int indexv[], int ne, float **s, float **y);
131 void dlinmin(float p[], float xi[], int n, float *fret,
132 float (*func)(float []), void (*dfunc)(float [], float[]));
133 double dpythag(double a, double b);
134 void drealft(double data[], unsigned long n, int isign);
135 void dsprsax(double sa[], unsigned long ija[], double x[], double b[],
136 unsigned long n);
137 void dsprstx(double sa[], unsigned long ija[], double x[], double b[],
138 unsigned long n);
139 void dsvbksb(double **u, double w[], double **v, int m, int n, double b[],
140 double x[]);
141 void dsvdcmp(double **a, int m, int n, double w[], double **v);
142 void eclass(int nf[], int n, int lista[], int listb[], int m);
143 void eclazz(int nf[], int n, int (*equiv)(int, int));
144 float ei(float x);
145 void eigsrt(float d[], float **v, int n);
146 float elle(float phi, float ak);
147 float ellf(float phi, float ak);
148 float ellpi(float phi, float en, float ak);
149 void elmhes(float **a, int n);
150 float erfcc(float x);
151 float erff(float x);
152 float erffc(float x);
153 void eulsum(float *sum, float term, int jterm, float wksp[]);
154 float evlmem(float fdt, float d[], int m, float xms);
155 float expdev(long *idum);
156 float expint(int n, float x);
157 float f1(float x);
158 float f1dim(float x);
159 float f2(float y);
160 float f3(float z);
161 float factln(int n);
162 float factrl(int n);
163 void fasper(float x[], float y[], unsigned long n, float ofac, float hifac,
164 float wk1[], float wk2[], unsigned long nwk, unsigned long *nout,
165 unsigned long *jmax, float *prob);
166 void fdjac(int n, float x[], float fvec[], float **df,
167 void (*vecfunc)(int, float [], float []));
168 void fgauss(float x, float a[], float *y, float dyda[], int na);
169 void fill0(double **u, int n);
170 void fit(float x[], float y[], int ndata, float sig[], int mwt,
171 float *a, float *b, float *siga, float *sigb, float *chi2, float *q);
172 void fitexy(float x[], float y[], int ndat, float sigx[], float sigy[],
173 float *a, float *b, float *siga, float *sigb, float *chi2, float *q);
174 void fixrts(float d[], int m);
175 void fleg(float x, float pl[], int nl);
176 void flmoon(int n, int nph, long *jd, float *frac);
177 float fmin(float x[]);
178 void four1(float data[], unsigned long nn, int isign);
179 void fourew(FILE *file[5], int *na, int *nb, int *nc, int *nd);
180 void fourfs(FILE *file[5], unsigned long nn[], int ndim, int isign);
181 void fourn(float data[], unsigned long nn[], int ndim, int isign);
182 void fpoly(float x, float p[], int np);
183 void fred2(int n, float a, float b, float t[], float f[], float w[],
184 float (*g)(float), float (*ak)(float, float));
185 float fredin(float x, int n, float a, float b, float t[], float f[], float w[],
186 float (*g)(float), float (*ak)(float, float));
187 void frenel(float x, float *s, float *c);
188 void frprmn(float p[], int n, float ftol, int *iter, float *fret,
189 float (*func)(float []), void (*dfunc)(float [], float []));
190 void ftest(float data1[], unsigned long n1, float data2[], unsigned long n2,
191 float *f, float *prob);
192 float gamdev(int ia, long *idum);
193 float gammln(float xx);
194 float gammp(float a, float x);
195 float gammq(float a, float x);
196 float gasdev(long *idum);
197 void gaucof(int n, float a[], float b[], float amu0, float x[], float w[]);
198 void gauher(float x[], float w[], int n);
199 void gaujac(float x[], float w[], int n, float alf, float bet);
200 void gaulag(float x[], float w[], int n, float alf);
201 void gauleg(float x1, float x2, float x[], float w[], int n);
202 void gaussj(float **a, int n, float **b, int m);
203 void gcf(float *gammcf, float a, float x, float *gln);
204 float golden(float ax, float bx, float cx, float (*f)(float), float tol,
205 float *xmin);
206 void gser(float *gamser, float a, float x, float *gln);
207 void hpsel(unsigned long m, unsigned long n, float arr[], float heap[]);
208 void hpsort(unsigned long n, float ra[]);
209 void hqr(float **a, int n, float wr[], float wi[]);
210 void hufapp(unsigned long index[], unsigned long nprob[], unsigned long n,
211 unsigned long i);
212 void hufdec(unsigned long *ich, unsigned char *code, unsigned long lcode,
213 unsigned long *nb, huffcode *hcode);
214 void hufenc(unsigned long ich, unsigned char **codep, unsigned long *lcode,
215 unsigned long *nb, huffcode *hcode);
216 void hufmak(unsigned long nfreq[], unsigned long nchin, unsigned long *ilong,
217 unsigned long *nlong, huffcode *hcode);
218 void hunt(float xx[], unsigned long n, float x, unsigned long *jlo);
219 void hypdrv(float s, float yy[], float dyyds[]);
220 fcomplex hypgeo(fcomplex a, fcomplex b, fcomplex c, fcomplex z);
221 void hypser(fcomplex a, fcomplex b, fcomplex c, fcomplex z,
222 fcomplex *series, fcomplex *deriv);
223 unsigned short icrc(unsigned short crc, unsigned char *bufptr,
224 unsigned long len, short jinit, int jrev);
225 unsigned short icrc1(unsigned short crc, unsigned char onech);
226 unsigned long igray(unsigned long n, int is);
227 void iindexx(unsigned long n, long arr[], unsigned long indx[]);
228 void indexx(unsigned long n, float arr[], unsigned long indx[]);
229 void interp(double **uf, double **uc, int nf);
230 int irbit1(unsigned long *iseed);
231 int irbit2(unsigned long *iseed);
232 void jacobi(float **a, int n, float d[], float **v, int *nrot);
233 void jacobn(float x, float y[], float dfdx[], float **dfdy, int n);
234 long julday(int mm, int id, int iyyy);
235 void kendl1(float data1[], float data2[], unsigned long n, float *tau, float *z,
236 float *prob);
237 void kendl2(float **tab, int i, int j, float *tau, float *z, float *prob);
238 void kermom(double w[], double y, int m);
239 void ks2d1s(float x1[], float y1[], unsigned long n1,
240 void (*quadvl)(float, float, float *, float *, float *, float *),
241 float *d1, float *prob);
242 void ks2d2s(float x1[], float y1[], unsigned long n1, float x2[], float y2[],
243 unsigned long n2, float *d, float *prob);
244 void ksone(float data[], unsigned long n, float (*func)(float), float *d,
245 float *prob);
246 void kstwo(float data1[], unsigned long n1, float data2[], unsigned long n2,
247 float *d, float *prob);
248 void laguer(fcomplex a[], int m, fcomplex *x, int *its);
249 void lfit(float x[], float y[], float sig[], int ndat, float a[], int ia[],
250 int ma, float **covar, float *chisq, void (*funcs)(float, float [], int));
251 void linbcg(unsigned long n, double b[], double x[], int itol, double tol,
252 int itmax, int *iter, double *err);
253 void linmin(float p[], float xi[], int n, float *fret,
254 float (*func)(float []));
255 void lnsrch(int n, float xold[], float fold, float g[], float p[], float x[],
256 float *f, float stpmax, int *check, float (*func)(float []));
257 void load(float x1, float v[], float y[]);
258 void load1(float x1, float v1[], float y[]);
259 void load2(float x2, float v2[], float y[]);
260 void locate(float xx[], unsigned long n, float x, unsigned long *j);
261 void lop(double **out, double **u, int n);
262 void lubksb(float **a, int n, int *indx, float b[]);
263 void ludcmp(float **a, int n, int *indx, float *d);
264 void machar(int *ibeta, int *it, int *irnd, int *ngrd,
265 int *machep, int *negep, int *iexp, int *minexp, int *maxexp,
266 float *eps, float *epsneg, float *xmin, float *xmax);
267 void matadd(double **a, double **b, double **c, int n);
268 void matsub(double **a, double **b, double **c, int n);
269 void medfit(float x[], float y[], int ndata, float *a, float *b, float *abdev);
270 void memcof(float data[], int n, int m, float *xms, float d[]);
271 int metrop(float de, float t);
272 void mgfas(double **u, int n, int maxcyc);
273 void mglin(double **u, int n, int ncycle);
274 float midexp(float (*funk)(float), float aa, float bb, int n);
275 float midinf(float (*funk)(float), float aa, float bb, int n);
276 float midpnt(float (*func)(float), float a, float b, int n);
277 float midsql(float (*funk)(float), float aa, float bb, int n);
278 float midsqu(float (*funk)(float), float aa, float bb, int n);
279 void miser(float (*func)(float []), float regn[], int ndim, unsigned long npts,
280 float dith, float *ave, float *var);
281 void mmid(float y[], float dydx[], int nvar, float xs, float htot,
282 int nstep, float yout[], void (*derivs)(float, float[], float[]));
283 void mnbrak(float *ax, float *bx, float *cx, float *fa, float *fb,
284 float *fc, float (*func)(float));
285 void mnewt(int ntrial, float x[], int n, float tolx, float tolf);
286 void moment(float data[], int n, float *ave, float *adev, float *sdev,
287 float *var, float *skew, float *curt);
288 void mp2dfr(unsigned char a[], unsigned char s[], int n, int *m);
289 void mpadd(unsigned char w[], unsigned char u[], unsigned char v[], int n);
290 void mpdiv(unsigned char q[], unsigned char r[], unsigned char u[],
291 unsigned char v[], int n, int m);
292 void mpinv(unsigned char u[], unsigned char v[], int n, int m);
293 void mplsh(unsigned char u[], int n);
294 void mpmov(unsigned char u[], unsigned char v[], int n);
295 void mpmul(unsigned char w[], unsigned char u[], unsigned char v[], int n,
296 int m);
297 void mpneg(unsigned char u[], int n);
298 void mppi(int n);
299 void mprove(float **a, float **alud, int n, int indx[], float b[],
300 float x[]);
301 void mpsad(unsigned char w[], unsigned char u[], int n, int iv);
302 void mpsdv(unsigned char w[], unsigned char u[], int n, int iv, int *ir);
303 void mpsmu(unsigned char w[], unsigned char u[], int n, int iv);
304 void mpsqrt(unsigned char w[], unsigned char u[], unsigned char v[], int n,
305 int m);
306 void mpsub(int *is, unsigned char w[], unsigned char u[], unsigned char v[],
307 int n);
308 void mrqcof(float x[], float y[], float sig[], int ndata, float a[],
309 int ia[], int ma, float **alpha, float beta[], float *chisq,
310 void (*funcs)(float, float [], float *, float [], int));
311 void mrqmin(float x[], float y[], float sig[], int ndata, float a[],
312 int ia[], int ma, float **covar, float **alpha, float *chisq,
313 void (*funcs)(float, float [], float *, float [], int), float *alamda);
314 void newt(float x[], int n, int *check,
315 void (*vecfunc)(int, float [], float []));
316 void odeint(float ystart[], int nvar, float x1, float x2,
317 float eps, float h1, float hmin, int *nok, int *nbad,
318 void (*derivs)(float, float [], float []),
319 void (*rkqs)(float [], float [], int, float *, float, float,
320 float [], float *, float *, void (*)(float, float [], float [])));
321 void orthog(int n, float anu[], float alpha[], float beta[], float a[],
322 float b[]);
323 void pade(double cof[], int n, float *resid);
324 void pccheb(float d[], float c[], int n);
325 void pcshft(float a, float b, float d[], int n);
326 void pearsn(float x[], float y[], unsigned long n, float *r, float *prob,
327 float *z);
328 void period(float x[], float y[], int n, float ofac, float hifac,
329 float px[], float py[], int np, int *nout, int *jmax, float *prob);
330 void piksr2(int n, float arr[], float brr[]);
331 void piksrt(int n, float arr[]);
332 void pinvs(int ie1, int ie2, int je1, int jsf, int jc1, int k,
333 float ***c, float **s);
334 float plgndr(int l, int m, float x);
335 float poidev(float xm, long *idum);
336 void polcoe(float x[], float y[], int n, float cof[]);
337 void polcof(float xa[], float ya[], int n, float cof[]);
338 void poldiv(float u[], int n, float v[], int nv, float q[], float r[]);
339 void polin2(float x1a[], float x2a[], float **ya, int m, int n,
340 float x1, float x2, float *y, float *dy);
341 void polint(float xa[], float ya[], int n, float x, float *y, float *dy);
342 void powell(float p[], float **xi, int n, float ftol, int *iter, float *fret,
343 float (*func)(float []));
344 void predic(float data[], int ndata, float d[], int m, float future[], int nfut);
345 float probks(float alam);
346 void psdes(unsigned long *lword, unsigned long *irword);
347 void pwt(float a[], unsigned long n, int isign);
348 void pwtset(int n);
349 float pythag(float a, float b);
350 void pzextr(int iest, float xest, float yest[], float yz[], float dy[],
351 int nv);
352 float qgaus(float (*func)(float), float a, float b);
353 void qrdcmp(float **a, int n, float *c, float *d, int *sing);
354 float qromb(float (*func)(float), float a, float b);
355 float qromo(float (*func)(float), float a, float b,
356 float (*choose)(float (*)(float), float, float, int));
357 void qroot(float p[], int n, float *b, float *c, float eps);
358 void qrsolv(float **a, int n, float c[], float d[], float b[]);
359 void qrupdt(float **r, float **qt, int n, float u[], float v[]);
360 float qsimp(float (*func)(float), float a, float b);
361 float qtrap(float (*func)(float), float a, float b);
362 float quad3d(float (*func)(float, float, float), float x1, float x2);
363 void quadct(float x, float y, float xx[], float yy[], unsigned long nn,
364 float *fa, float *fb, float *fc, float *fd);
365 void quadmx(float **a, int n);
366 void quadvl(float x, float y, float *fa, float *fb, float *fc, float *fd);
367 float ran0(long *idum);
368 float ran1(long *idum);
369 float ran2(long *idum);
370 float ran3(long *idum);
371 float ran4(long *idum);
372 void rank(unsigned long n, unsigned long indx[], unsigned long irank[]);
373 void ranpt(float pt[], float regn[], int n);
374 void ratint(float xa[], float ya[], int n, float x, float *y, float *dy);
375 void ratlsq(double (*fn)(double), double a, double b, int mm, int kk,
376 double cof[], double *dev);
377 double ratval(double x, double cof[], int mm, int kk);
378 float rc(float x, float y);
379 float rd(float x, float y, float z);
380 void realft(float data[], unsigned long n, int isign);
381 void rebin(float rc, int nd, float r[], float xin[], float xi[]);
382 void red(int iz1, int iz2, int jz1, int jz2, int jm1, int jm2, int jmf,
383 int ic1, int jc1, int jcf, int kc, float ***c, float **s);
384 void relax(double **u, double **rhs, int n);
385 void relax2(double **u, double **rhs, int n);
386 void resid(double **res, double **u, double **rhs, int n);
387 float revcst(float x[], float y[], int iorder[], int ncity, int n[]);
388 void reverse(int iorder[], int ncity, int n[]);
389 float rf(float x, float y, float z);
390 float rj(float x, float y, float z, float p);
391 void rk4(float y[], float dydx[], int n, float x, float h, float yout[],
392 void (*derivs)(float, float [], float []));
393 void rkck(float y[], float dydx[], int n, float x, float h,
394 float yout[], float yerr[], void (*derivs)(float, float [], float []));
395 void rkdumb(float vstart[], int nvar, float x1, float x2, int nstep,
396 void (*derivs)(float, float [], float []));
397 void rkqs(float y[], float dydx[], int n, float *x,
398 float htry, float eps, float yscal[], float *hdid, float *hnext,
399 void (*derivs)(float, float [], float []));
400 void rlft3(float ***data, float **speq, unsigned long nn1,
401 unsigned long nn2, unsigned long nn3, int isign);
402 float rofunc(float b);
403 void rotate(float **r, float **qt, int n, int i, float a, float b);
404 void rsolv(float **a, int n, float d[], float b[]);
405 void rstrct(double **uc, double **uf, int nc);
406 float rtbis(float (*func)(float), float x1, float x2, float xacc);
407 float rtflsp(float (*func)(float), float x1, float x2, float xacc);
408 float rtnewt(void (*funcd)(float, float *, float *), float x1, float x2,
409 float xacc);
410 float rtsafe(void (*funcd)(float, float *, float *), float x1, float x2,
411 float xacc);
412 float rtsec(float (*func)(float), float x1, float x2, float xacc);
413 void rzextr(int iest, float xest, float yest[], float yz[], float dy[], int nv);
414 void savgol(float c[], int np, int nl, int nr, int ld, int m);
415 void score(float xf, float y[], float f[]);
416 void scrsho(float (*fx)(float));
417 float select(unsigned long k, unsigned long n, float arr[]);
418 float selip(unsigned long k, unsigned long n, float arr[]);
419 void shell(unsigned long n, float a[]);
420 void shoot(int n, float v[], float f[]);
421 void shootf(int n, float v[], float f[]);
422 void simp1(float **a, int mm, int ll[], int nll, int iabf, int *kp,
423 float *bmax);
424 void simp2(float **a, int m, int n, int *ip, int kp);
425 void simp3(float **a, int i1, int k1, int ip, int kp);
426 void simplx(float **a, int m, int n, int m1, int m2, int m3, int *icase,
427 int izrov[], int iposv[]);
428 void simpr(float y[], float dydx[], float dfdx[], float **dfdy,
429 int n, float xs, float htot, int nstep, float yout[],
430 void (*derivs)(float, float [], float []));
431 void sinft(float y[], int n);
432 void slvsm2(double **u, double **rhs);
433 void slvsml(double **u, double **rhs);
434 void sncndn(float uu, float emmc, float *sn, float *cn, float *dn);
435 double snrm(unsigned long n, double sx[], int itol);
436 void sobseq(int *n, float x[]);
437 void solvde(int itmax, float conv, float slowc, float scalv[],
438 int indexv[], int ne, int nb, int m, float **y, float ***c, float **s);
439 void sor(double **a, double **b, double **c, double **d, double **e,
440 double **f, double **u, int jmax, double rjac);
441 void sort(unsigned long n, float arr[]);
442 void sort2(unsigned long n, float arr[], float brr[]);
443 void sort3(unsigned long n, float ra[], float rb[], float rc[]);
444 void spctrm(FILE *fp, float p[], int m, int k, int ovrlap);
445 void spear(float data1[], float data2[], unsigned long n, float *d, float *zd,
446 float *probd, float *rs, float *probrs);
447 void sphbes(int n, float x, float *sj, float *sy, float *sjp, float *syp);
448 void splie2(float x1a[], float x2a[], float **ya, int m, int n, float **y2a);
449 void splin2(float x1a[], float x2a[], float **ya, float **y2a, int m, int n,
450 float x1, float x2, float *y);
451 void spline(float x[], float y[], int n, float yp1, float ypn, float y2[]);
452 void splint(float xa[], float ya[], float y2a[], int n, float x, float *y);
453 void spread(float y, float yy[], unsigned long n, float x, int m);
454 void sprsax(float sa[], unsigned long ija[], float x[], float b[],
455 unsigned long n);
456 void sprsin(float **a, int n, float thresh, unsigned long nmax, float sa[],
457 unsigned long ija[]);
458 void sprspm(float sa[], unsigned long ija[], float sb[], unsigned long ijb[],
459 float sc[], unsigned long ijc[]);
460 void sprstm(float sa[], unsigned long ija[], float sb[], unsigned long ijb[],
461 float thresh, unsigned long nmax, float sc[], unsigned long ijc[]);
462 void sprstp(float sa[], unsigned long ija[], float sb[], unsigned long ijb[]);
463 void sprstx(float sa[], unsigned long ija[], float x[], float b[],
464 unsigned long n);
465 void stifbs(float y[], float dydx[], int nv, float *xx,
466 float htry, float eps, float yscal[], float *hdid, float *hnext,
467 void (*derivs)(float, float [], float []));
468 void stiff(float y[], float dydx[], int n, float *x,
469 float htry, float eps, float yscal[], float *hdid, float *hnext,
470 void (*derivs)(float, float [], float []));
471 void stoerm(float y[], float d2y[], int nv, float xs,
472 float htot, int nstep, float yout[],
473 void (*derivs)(float, float [], float []));
474 void svbksb(long double **u, long double w[], long double **v, int m, int n, long double b[],
475 double x[]);
476 void svdcmp(long double **a, int m, int n, long double w[], long double **v);
477 void svdfit(float x[], float y[], float sig[], int ndata, float a[],
478 int ma, float **u, float **v, float w[], float *chisq,
479 void (*funcs)(float, float [], int));
480 void svdvar(float **v, int ma, float w[], float **cvm);
481 void toeplz(float r[], float x[], float y[], int n);
482 void tptest(float data1[], float data2[], unsigned long n, float *t, float *prob);
483 void tqli(float d[], float e[], int n, float **z);
484 float trapzd(float (*func)(float), float a, float b, int n);
485 void tred2(float **a, int n, float d[], float e[]);
486 void tridag(float a[], float b[], float c[], float r[], float u[],
487 unsigned long n);
488 float trncst(float x[], float y[], int iorder[], int ncity, int n[]);
489 void trnspt(int iorder[], int ncity, int n[]);
490 void ttest(float data1[], unsigned long n1, float data2[], unsigned long n2,
491 float *t, float *prob);
492 void tutest(float data1[], unsigned long n1, float data2[], unsigned long n2,
493 float *t, float *prob);
494 void twofft(float data1[], float data2[], float fft1[], float fft2[],
495 unsigned long n);
496 void vander(double x[], double w[], double q[], int n);
497 void vegas(float regn[], int ndim, float (*fxn)(float [], float), int init,
498 unsigned long ncall, int itmx, int nprn, float *tgral, float *sd,
499 float *chi2a);
500 void voltra(int n, int m, float t0, float h, float *t, float **f,
501 float (*g)(int, float), float (*ak)(int, int, float, float));
502 void wt1(float a[], unsigned long n, int isign,
503 void (*wtstep)(float [], unsigned long, int));
504 void wtn(float a[], unsigned long nn[], int ndim, int isign,
505 void (*wtstep)(float [], unsigned long, int));
506 void wwghts(float wghts[], int n, float h,
507 void (*kermom)(double [], double ,int));
508 int zbrac(float (*func)(float), float *x1, float *x2);
509 void zbrak(float (*fx)(float), float x1, float x2, int n, float xb1[],
510 float xb2[], int *nb);
511 float zbrent(float (*func)(float), float x1, float x2, float tol);
512 void zrhqr(float a[], int m, float rtr[], float rti[]);
513 float zriddr(float (*func)(float), float x1, float x2, float xacc);
514 void zroots(fcomplex a[], int m, fcomplex roots[], int polish);
515 #else /* ANSI */
516 /* traditional - K&R */
517 void addint();
518 void airy();
519 float gasdev(long *idum);
520 void fgauss(float x, float a[], float *y, float dyda[], int na);
521 void mrqmin(float x[], float y[], float sig[], int ndata, float a[],
522 int ia[], int ma, float **covar, float **alpha, float *chisq,
523 void (*funcs)(float, float [], float *, float [], int), float *alamda);
524 /*Rest of traditional declarations are here on the diskette.*/
525 #endif /* ANSI */
526 #endif /* _NR_H_ */
unsigned long * right
Definition: Marq.h:15
void svdfit(float x[], float y[], float sig[], int ndata, float a[], int ma, float **u, float **v, float w[], float *chisq, void(*funcs)(float, float [], int))
Definition: SVD.C:47
void four1(double data[], unsigned long nn, int isign)
Definition: FFT.c:26
void airy()
long double pythag(long double a, long double b)
Definition: SVD.C:366
unsigned long nrad
Definition: Marq.h:9
static double sa
Definition: SOLPOS.C:137
static double ch
Definition: SOLPOS.C:120
void svbksb(long double **u, long double w[], long double **v, int m, int n, long double b[], long double x[])
Definition: SVD.C:99
static double delta
Definition: SOLPOS.C:129
float gasdev(long *idum)
unsigned int data[576]
Conversion data buffer 64 samples * 8 channels * 2 bytes.
float r
Definition: Marq.h:4
void svdcmp(long double **a, int m, int n, long double w[], long double **v)
Definition: SVD.C:132
Definition: Marq.h:14
Definition: Marq.h:4
void covsrt(float **covar, int ma, int ia[], int mfit)
Definition: SVD.C:23
void polint(float xa[], float ya[], int n, float x, float *y, float *dy)
Definition: Interpolation.c:28
void splint(float xa[], float ya[], float y2a[], int n, float x, float *y)
static double p
Definition: SOLPOS.C:131
static double sd
Definition: SOLPOS.C:138
struct FCOMPLEX fcomplex
void realft(double data[], unsigned long n, int isign)
Definition: FFT.c:95
void fgauss(float x, float a[], float *y, float dyda[], int na)
static double d2
Definition: SOLPOS.C:126
float i
Definition: Marq.h:4
void spline(float x[], float y[], int n, float yp1, float ypn, float y2[])
void addint()
void mrqmin(float x[], float y[], float sig[], int ndata, float a[], int ia[], int ma, float **covar, float **alpha, float *chisq, void(*funcs)(float, float [], float *, float [], int), float *alamda)
void ratint(float xa[], float ya[], int n, float x, float *y, float *dy)
Definition: Interpolation.c:82
Definition: Marq.h:8
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:08 for DAS - Rel. 3.1.6 - 18/09/2017.