Changeset 4991 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Sep 11, 2005, 12:18:40 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r4962 r4991 17 17 * 18 18 * 19 * @version $Revision: 1.14 4$ $Name: not supported by cvs2svn $20 * @date $Date: 2005-09- 07 21:40:09$19 * @version $Revision: 1.145 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-09-11 22:18:40 $ 21 21 * 22 22 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 746 746 XXX: Write a general routine which smoothes a psVector. This routine should 747 747 call that. Is that possible? 748 749 XXX: This is, or will be, prettier than the previous 750 psVectorSmoothHistGaussian(). However, it is not being used, yet. 748 751 *****************************************************************************/ 749 752 psVector *p_psVectorSmoothHistGaussianNEW(psHistogram *histogram, … … 1549 1552 1550 1553 // Determine the coefficients of the polynomial. 1551 myPoly = psVectorFitPolynomial1D(myPoly, x, y, yErr); 1554 // myPoly = psVectorFitPolynomial1D(myPoly, x, y, yErr); 1555 myPoly = psVectorFitPolynomial1D(myPoly, NULL, 0, y, yErr, x); 1552 1556 if (myPoly == NULL) { 1553 1557 psError(PS_ERR_UNEXPECTED_NULL, … … 1825 1829 psPolynomial1D *tmpPoly = psPolynomial1DAlloc(3, PS_POLYNOMIAL_ORD); 1826 1830 // XXX: What about the NULL x argument? 1827 tmpPoly = psVectorFitPolynomial1D(tmpPoly, NULL, y, NULL);1831 tmpPoly = psVectorFitPolynomial1D(tmpPoly, NULL, 0, y, NULL, NULL); 1828 1832 if (tmpPoly == NULL) { 1829 1833 psLogMsg(__func__, PS_LOG_WARN, … … 1936 1940 } 1937 1941 } else { 1938 p rintf("XXX: Generate an error here.\n");1942 psError(PS_ERR_UNKNOWN, true, "Unallowable vector type.\n"); 1939 1943 return(NULL); 1940 1944 } … … 1950 1954 psVector *Fit1DGaussian(psVector *x, psVector*y) 1951 1955 { 1952 printf("XXX: Generate an error here.\n"); 1953 printf("XXX: Error: This function was previously part of psStats.c, was removed, was purged from CVS, and now needs to be retrieved from tape.\n"); 1956 psError(PS_ERR_UNKNOWN, true, "This code has not been implemented yet.\n"); 1957 // XXX: This function was previously part of psStats.c, was removed, was 1958 // purged from CVS, and now needs to be retrieved from tape. 1959 1954 1960 return(NULL); 1955 1961 } … … 2168 2174 stats->robustLQ = binLo25F32; 2169 2175 stats->robustUQ = binHi25F32; 2170 // XXX: No idea how to calculate stats->stdev2171 2176 2172 2177 // PS_BIN_MIDPOINT(robustHistogram, modeBinNum); 2173 2174 2178 // XXX: I think sumNfit == sumN50 here. 2175 2179 stats->robustNfit = -1;
Note:
See TracChangeset
for help on using the changeset viewer.
