Changeset 5090 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Sep 21, 2005, 4:47:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r4991 r5090 17 17 * 18 18 * 19 * @version $Revision: 1.14 5$ $Name: not supported by cvs2svn $20 * @date $Date: 2005-09- 11 22:18:40$19 * @version $Revision: 1.146 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-09-22 02:47:16 $ 21 21 * 22 22 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1502 1502 psVector *y = psVectorAlloc(3, PS_TYPE_F64); 1503 1503 psVector *yErr = psVectorAlloc(3, PS_TYPE_F64); 1504 // XXX: Why was this 2 when the alloc function specified number of terms? Note: it's correct now. 1504 1505 psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD); 1505 1506 … … 1552 1553 1553 1554 // Determine the coefficients of the polynomial. 1554 // myPoly = psVectorFitPolynomial1D(myPoly, x, y, yErr);1555 1555 myPoly = psVectorFitPolynomial1D(myPoly, NULL, 0, y, yErr, x); 1556 1556 if (myPoly == NULL) { … … 1827 1827 } 1828 1828 1829 psPolynomial1D *tmpPoly = psPolynomial1DAlloc( 3, PS_POLYNOMIAL_ORD);1829 psPolynomial1D *tmpPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD); 1830 1830 // XXX: What about the NULL x argument? 1831 1831 tmpPoly = psVectorFitPolynomial1D(tmpPoly, NULL, 0, y, NULL, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
