Changeset 1107
- Timestamp:
- Jun 25, 2004, 3:12:22 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/dataManip/psMinimize.c (modified) (3 diffs)
-
src/math/psMinimize.c (modified) (3 diffs)
-
test/dataManip/Makefile (modified) (3 diffs)
-
test/image/tst_psImageStats03.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMinimize.c
r1103 r1107 193 193 gsl_matrix *J) 194 194 { 195 return 0; 195 196 gsl_function_f(x, params, f); 196 197 gsl_function_df(x, params, J); … … 230 231 gsl_multifit_fdfsolver *s; // GSL data structure. 231 232 232 // inputData = (psModelData *) psAlloc(sizeof(psModelData));233 233 psModelData inputData; 234 234 inputData.n = numData; … … 293 293 s = gsl_multifit_fdfsolver_alloc(T, numData, inputData.count); 294 294 295 printf("HERE 04 \n");295 printf("HERE 04 (HMMM)\n"); 296 296 // Initialize the GSL minimizer to use function defined by the data 297 297 // structure "f" and x.vector as an initial guess for the parameters. 298 psMemCheckCorruption(1); 299 printf("HERE 05 (HMMM)\n"); 298 300 gsl_multifit_fdfsolver_set(s, &f, &x.vector); 299 300 301 printf("HERE 05\n");302 301 // Each iteration of the following loop will perform one step in an 303 302 // attempt to minimized chi-squared for the function. The loop exits 304 303 // either when the change in parameters is small enough, or when the 305 304 // maximum number of iterations is reached. 305 printf("HERE 06.0\n"); 306 306 do { 307 307 iter++; -
trunk/psLib/src/math/psMinimize.c
r1103 r1107 193 193 gsl_matrix *J) 194 194 { 195 return 0; 195 196 gsl_function_f(x, params, f); 196 197 gsl_function_df(x, params, J); … … 230 231 gsl_multifit_fdfsolver *s; // GSL data structure. 231 232 232 // inputData = (psModelData *) psAlloc(sizeof(psModelData));233 233 psModelData inputData; 234 234 inputData.n = numData; … … 293 293 s = gsl_multifit_fdfsolver_alloc(T, numData, inputData.count); 294 294 295 printf("HERE 04 \n");295 printf("HERE 04 (HMMM)\n"); 296 296 // Initialize the GSL minimizer to use function defined by the data 297 297 // structure "f" and x.vector as an initial guess for the parameters. 298 psMemCheckCorruption(1); 299 printf("HERE 05 (HMMM)\n"); 298 300 gsl_multifit_fdfsolver_set(s, &f, &x.vector); 299 300 301 printf("HERE 05\n");302 301 // Each iteration of the following loop will perform one step in an 303 302 // attempt to minimized chi-squared for the function. The loop exits 304 303 // either when the change in parameters is small enough, or when the 305 304 // maximum number of iterations is reached. 305 printf("HERE 06.0\n"); 306 306 do { 307 307 iter++; -
trunk/psLib/test/dataManip/Makefile
r1099 r1107 3 3 ## Makefile: test/sysUtils 4 4 ## 5 ## $Revision: 1. 19$ $Name: not supported by cvs2svn $6 ## $Date: 2004-06-2 5 23:28:31$5 ## $Revision: 1.20 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-06-26 01:12:22 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 tst_psFunc00 \ 38 38 tst_psFunc01 \ 39 tst_psMinimize00 \ 39 40 tst_psImageStats00 \ 40 41 tst_psImageStats01 \ … … 67 68 tst_psFunc02: tst_psFunc02.o 68 69 tst_psFunc03: tst_psFunc03.o 70 tst_psMinimize00: tst_psMinimize00.o 69 71 tst_psImageStats00: tst_psImageStats00.o 70 72 tst_psImageStats01: tst_psImageStats01.o -
trunk/psLib/test/image/tst_psImageStats03.c
r1078 r1107 71 71 /* Deallocate data structures */ 72 72 /*************************************************************************/ 73 psImageFree(tmpImage); 73 // GUS: replace with psFree()? 74 // psImageFree(tmpImage); 74 75 75 76 psMemCheckCorruption(1);
Note:
See TracChangeset
for help on using the changeset viewer.
