IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 20, 2008, 2:37:35 PM (18 years ago)
Author:
Paul Price
Message:

Some idiot forgot the definition of "RMS", resulting in many values being excluded.

File:
1 edited

Legend:

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

    r17071 r17075  
    33#include <limits.h>
    44
    5 #include <psMemory.h>
    6 #include <psVector.h>
    7 #include <psImage.h>
    8 #include <psPolynomial.h>
    9 #include <psArray.h>
    10 #include <psMatrix.h>
    11 #include <psError.h>
    12 #include <psAbort.h>
    13 #include <psAssert.h>
     5#include "psMemory.h"
     6#include "psVector.h"
     7#include "psImage.h"
     8#include "psPolynomial.h"
     9#include "psArray.h"
     10#include "psMatrix.h"
     11#include "psError.h"
     12#include "psAbort.h"
     13#include "psAssert.h"
     14#include "psTrace.h"
    1415
    1516#include "psPolynomialMD.h"
     
    398399            rms += PS_SQR(diff);
    399400        }
    400         rms = sqrt(rms) / (double)numGood;
     401        rms = sqrt(rms / (double)numGood);
     402        psTrace("psLib.math", 7, "RMS from %d points is %lf\n", numGood, rms);
    401403
    402404        // Reject
     
    407409            }
    408410            if (fabs(deviations->data.F32[i]) > limit) {
     411                psTrace("psLib.math", 9, "Rejected point %d (%f,%f: %f > %f)\n",
     412                        i, values->data.F32[i], psPolynomialMDEval(poly, coordsArray->data[i]),
     413                        deviations->data.F32[i], limit);
    409414                ownMask->data.U8[i] = 0xff;
    410415                numClipped++;
     
    412417            }
    413418        }
     419        psTrace("psLib.math", 7, "Rejected %d points (%d remaining)\n", numClipped, numGood);
    414420    }
    415421
Note: See TracChangeset for help on using the changeset viewer.