--- ray/src/common/linregr.c 1991/04/30 15:30:15 1.1 +++ ray/src/common/linregr.c 2003/02/25 02:47:21 2.4 @@ -1,16 +1,18 @@ -/* Copyright (c) 1991 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: linregr.c,v 2.4 2003/02/25 02:47:21 greg Exp $"; #endif - /* * Basic linear regression calculation. */ +#include "copyright.h" + +#include + #include "linregr.h" +void lrclear(l) /* initialize sum */ register LRSUM *l; { @@ -19,6 +21,7 @@ register LRSUM *l; } +int flrpoint(x, y, l) /* add point (x,y) to sum */ double x, y; register LRSUM *l; @@ -32,6 +35,7 @@ register LRSUM *l; } +int lrfit(r, l) /* compute linear regression */ register LRLIN *r; register LRSUM *l;