Changeset 6185 for trunk/psLib/src/math/psMinimizePolyFit.c
- Timestamp:
- Jan 23, 2006, 10:44:29 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimizePolyFit.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimizePolyFit.c
r6101 r6185 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-01-2 1 02:43:31$12 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-01-23 20:44:29 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 862 862 psF32 minClipSigma; 863 863 psF32 maxClipSigma; 864 865 864 if (isnan(stats->max) || isfinite(stats->max)) { 866 865 maxClipSigma = fabs(stats->clipSigma); … … 873 872 minClipSigma = fabs(stats->min); 874 873 } 874 875 875 psVector *fit = NULL; 876 876 psVector *resid = psVectorAlloc(f->n, PS_TYPE_F64); … … 881 881 // for now, for the SAMPLE_MEDIAN and SAMPLE_STDEV to be used 882 882 stats->options |= (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV); 883 884 883 psTrace(__func__, 4, "stats->clipIter is %d\n", stats->clipIter); 885 884 psTrace(__func__, 4, "(minClipSigma, maxClipSigma) is (%.2f, %.2f)\n", minClipSigma, maxClipSigma); 885 886 886 // 887 887 for (int N = 0; N < stats->clipIter; N++) { 888 888 psTrace(__func__, 6, "Loop iteration %d. Calling psVectorFitPolynomial1D()\n"); 889 889 int Nkeep = 0; 890 // XXX: Check error codes891 890 if (psTraceGetLevel(__func__) >= 6) { 892 891 if (mask != NULL) { … … 902 901 } 903 902 903 // XXX: Check error codes 904 904 fit = psPolynomial1DEvalVector(poly, x); 905 905 for (psS32 i = 0 ; i < f->n ; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
