IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2006, 10:44:29 AM (20 years ago)
Author:
gusciora
Message:

psMinimize is now split into 3 files.

File:
1 edited

Legend:

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

    r6101 r6185  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-01-21 02:43:31 $
     12 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-23 20:44:29 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    862862    psF32 minClipSigma;
    863863    psF32 maxClipSigma;
    864 
    865864    if (isnan(stats->max) || isfinite(stats->max)) {
    866865        maxClipSigma = fabs(stats->clipSigma);
     
    873872        minClipSigma = fabs(stats->min);
    874873    }
     874
    875875    psVector *fit   = NULL;
    876876    psVector *resid = psVectorAlloc(f->n, PS_TYPE_F64);
     
    881881    // for now, for the SAMPLE_MEDIAN and SAMPLE_STDEV to be used
    882882    stats->options |= (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
    883 
    884883    psTrace(__func__, 4, "stats->clipIter is %d\n", stats->clipIter);
    885884    psTrace(__func__, 4, "(minClipSigma, maxClipSigma) is (%.2f, %.2f)\n", minClipSigma, maxClipSigma);
     885
    886886    //
    887887    for (int N = 0; N < stats->clipIter; N++) {
    888888        psTrace(__func__, 6, "Loop iteration %d.  Calling psVectorFitPolynomial1D()\n");
    889889        int Nkeep = 0;
    890         // XXX: Check error codes
    891890        if (psTraceGetLevel(__func__) >= 6) {
    892891            if (mask != NULL) {
     
    902901        }
    903902
     903        // XXX: Check error codes
    904904        fit = psPolynomial1DEvalVector(poly, x);
    905905        for (psS32 i = 0 ; i < f->n ; i++) {
Note: See TracChangeset for help on using the changeset viewer.