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

Comparing ray/src/common/linregr.c (file contents):
Revision 1.1 by greg, Tue Apr 30 15:30:15 1991 UTC vs.
Revision 2.4 by greg, Tue Feb 25 02:47:21 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Basic linear regression calculation.
6   */
7  
8 + #include "copyright.h"
9 +
10 + #include <math.h>
11 +
12   #include "linregr.h"
13  
14  
15 + void
16   lrclear(l)                      /* initialize sum */
17   register LRSUM  *l;
18   {
# Line 19 | Line 21 | register LRSUM *l;
21   }
22  
23  
24 + int
25   flrpoint(x, y, l)               /* add point (x,y) to sum */
26   double  x, y;
27   register LRSUM  *l;
# Line 32 | Line 35 | register LRSUM *l;
35   }
36  
37  
38 + int
39   lrfit(r, l)                     /* compute linear regression */
40   register LRLIN  *r;
41   register LRSUM  *l;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines