- Timestamp:
- Aug 26, 2010, 9:18:39 AM (16 years ago)
- Location:
- branches/sc_branches/trunkTest
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/math/psMinimizeLMM.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/trunkTest
- Property svn:mergeinfo changed
-
branches/sc_branches/trunkTest/psLib/src/math/psMinimizeLMM.h
r23486 r29060 33 33 #define PS_MAX_LMM_ITERATIONS 100 34 34 #define PS_MAX_MINIMIZE_ITERATIONS 100 35 #define P_PSMINIMIZATION_SET_MAXITER(m,val) *(int*)&m->maxIter = val 36 #define P_PSMINIMIZATION_SET_TOL(m,val) *(float*)&m->tol = val 35 #define P_PSMINIMIZATION_SET_MAXITER(m,val) { *(int*)&m->maxIter = val; } 36 #define P_PSMINIMIZATION_SET_MIN_TOL(m,val) { *(float*)&m->minTol = val; } 37 #define P_PSMINIMIZATION_SET_MAX_TOL(m,val) { *(float*)&m->maxTol = val; } 37 38 38 39 typedef enum { … … 75 76 typedef struct 76 77 { 77 const int maxIter; ///< Convergence limit 78 const float tol; ///< Error Tolerance 78 const int maxIter; ///< Convergence limit 79 const float minTol; ///< Convergence Tolerance (stop if we reach this value) 80 const float maxTol; ///< Max Tolerance (accept fit if last improvement was this good) 79 81 float value; ///< Value of function at minimum 80 82 int iter; ///< Number of iterations to date 81 83 float lastDelta; ///< The last difference for the fit 84 float maxChisqDOF; ///< for Chisq minimization, require that we reach here before checking tolerance 82 85 } 83 86 psMinimization; … … 102 105 psMinimization *psMinimizationAlloc( 103 106 int maxIter, ///< Number of minimization iterations to perform. 104 float tol ///< Requested error tolerance 107 float minTol, ///< stop if tolerance is less than this 108 float maxTol ///< accept fit if tolerance is less than this 105 109 ) PS_ATTR_MALLOC; 106 110
Note:
See TracChangeset
for help on using the changeset viewer.
