IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2005, 12:18:40 PM (21 years ago)
Author:
gusciora
Message:

....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r4962 r4991  
    1717 *
    1818 *
    19  *  @version $Revision: 1.144 $ $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 $
    2121 *
    2222 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    746746XXX: Write a general routine which smoothes a psVector.  This routine should
    747747call that.  Is that possible?
     748 
     749XXX: This is, or will be, prettier than the previous
     750psVectorSmoothHistGaussian().  However, it is not being used, yet.
    748751 *****************************************************************************/
    749752psVector *p_psVectorSmoothHistGaussianNEW(psHistogram *histogram,
     
    15491552
    15501553        // 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);
    15521556        if (myPoly == NULL) {
    15531557            psError(PS_ERR_UNEXPECTED_NULL,
     
    18251829        psPolynomial1D *tmpPoly = psPolynomial1DAlloc(3, PS_POLYNOMIAL_ORD);
    18261830        // XXX: What about the NULL x argument?
    1827         tmpPoly = psVectorFitPolynomial1D(tmpPoly, NULL, y, NULL);
     1831        tmpPoly = psVectorFitPolynomial1D(tmpPoly, NULL, 0, y, NULL, NULL);
    18281832        if (tmpPoly == NULL) {
    18291833            psLogMsg(__func__, PS_LOG_WARN,
     
    19361940        }
    19371941    } else {
    1938         printf("XXX: Generate an error here.\n");
     1942        psError(PS_ERR_UNKNOWN, true, "Unallowable vector type.\n");
    19391943        return(NULL);
    19401944    }
     
    19501954psVector *Fit1DGaussian(psVector *x, psVector*y)
    19511955{
    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
    19541960    return(NULL);
    19551961}
     
    21682174            stats->robustLQ = binLo25F32;
    21692175            stats->robustUQ = binHi25F32;
    2170             // XXX: No idea how to calculate stats->stdev
    21712176
    21722177            // PS_BIN_MIDPOINT(robustHistogram, modeBinNum);
    2173 
    21742178            // XXX: I think sumNfit == sumN50 here.
    21752179            stats->robustNfit = -1;
Note: See TracChangeset for help on using the changeset viewer.