ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/linregr.h
(Generate patch)

Comparing ray/src/common/linregr.h (file contents):
Revision 2.2 by greg, Fri Oct 2 15:56:12 1992 UTC vs.
Revision 2.6 by greg, Fri Jun 27 06:53:21 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
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   typedef struct {
12          double  xs, ys, xxs, yys, xys;
# Line 24 | Line 26 | typedef struct {
26   #define lryvar(l)       (((l)->yys-(l)->ys*(l)->ys/(l)->n)/(l)->n)
27   #define lrxdev(l)       sqrt(((l)->xxs-(l)->xs*(l)->xs/(l)->n)/((l)->n-1))
28   #define lrydev(l)       sqrt(((l)->yys-(l)->ys*(l)->ys/(l)->n)/((l)->n-1))
29 +
30 +
31 + extern void     lrclear(LRSUM *l);
32 + extern int      flrpoint(double x, double y, LRSUM *l);
33 + extern int      lrfit(LRLIN *r, LRSUM *l);
34 +
35 +
36 + #ifdef __cplusplus
37 + }
38 + #endif
39 + #endif /* _RAD_LINEGR_H_ */
40 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines