2 |
|
/* |
3 |
|
* Header file for linear regression calculation. |
4 |
|
*/ |
5 |
+ |
#ifndef _RAD_LINEGR_H_ |
6 |
+ |
#define _RAD_LINEGR_H_ |
7 |
+ |
#ifdef __cplusplus |
8 |
+ |
extern "C" { |
9 |
+ |
#endif |
10 |
|
|
11 |
|
#include "copyright.h" |
12 |
|
|
29 |
|
#define lrxdev(l) sqrt(((l)->xxs-(l)->xs*(l)->xs/(l)->n)/((l)->n-1)) |
30 |
|
#define lrydev(l) sqrt(((l)->yys-(l)->ys*(l)->ys/(l)->n)/((l)->n-1)) |
31 |
|
|
27 |
– |
#ifdef NOPROTO |
32 |
|
|
29 |
– |
extern void lrclear(); |
30 |
– |
extern int flrpoint(); |
31 |
– |
extern int lrfit(); |
32 |
– |
|
33 |
– |
#else |
34 |
– |
|
33 |
|
extern void lrclear(LRSUM *l); |
34 |
|
extern int flrpoint(double x, double y, LRSUM *l); |
35 |
|
extern int lrfit(LRLIN *r, LRSUM *l); |
36 |
|
|
37 |
+ |
|
38 |
+ |
#ifdef __cplusplus |
39 |
+ |
} |
40 |
|
#endif |
41 |
+ |
#endif /* _RAD_LINEGR_H_ */ |
42 |
+ |
|