Changeset 35767 for trunk/psLib/src/math/psMinimizeLMM.h
- Timestamp:
- Jul 3, 2013, 2:30:22 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimizeLMM.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimizeLMM.h
r28998 r35767 30 30 #include "psConstants.h" 31 31 32 # define PS_MINIMIZE_LMM_GAIN_FACTOR_MODE 0 33 # define PS_MINIMIZE_LMM_CHISQ_CONVERGENCE 1 34 32 35 #define PS_DETERMINE_BRACKET_STEP_SIZE 0.10 33 36 #define PS_MAX_LMM_ITERATIONS 100 … … 82 85 int iter; ///< Number of iterations to date 83 86 float lastDelta; ///< The last difference for the fit 87 float rParSigma; ///< last fractional change in the parameters 84 88 float maxChisqDOF; ///< for Chisq minimization, require that we reach here before checking tolerance 89 int gainFactorMode; 90 bool chisqConvergence; 85 91 } 86 92 psMinimization; … … 124 130 */ 125 131 bool psMinimizeLMChi2( 132 psMinimization *min, ///< Minimization specification 133 psImage *covar, ///< Covariance matrix 134 psVector *params, ///< "Best Guess" for the parameters that minimize func 135 psMinConstraint *constraint, ///< Constraints on the parameters 136 const psArray *x, ///< Measurement ordinates of multiple vectors 137 const psVector *y, ///< Measurement coordinates 138 const psVector *yWt, ///< Errors in the measurement coordinates 139 psMinimizeLMChi2Func func ///< Specified function 140 ); 141 142 /** Minimizes a specified function based on the Levenberg-Marquardt method. 143 * 144 * @return bool: True if successful. 145 */ 146 bool psMinimizeLMChi2_Old( 147 psMinimization *min, ///< Minimization specification 148 psImage *covar, ///< Covariance matrix 149 psVector *params, ///< "Best Guess" for the parameters that minimize func 150 psMinConstraint *constraint, ///< Constraints on the parameters 151 const psArray *x, ///< Measurement ordinates of multiple vectors 152 const psVector *y, ///< Measurement coordinates 153 const psVector *yWt, ///< Errors in the measurement coordinates 154 psMinimizeLMChi2Func func ///< Specified function 155 ); 156 157 /** Minimizes a specified function based on the Levenberg-Marquardt method 158 Uses alternative convergence criterion. 159 * 160 * @return bool: True if successful. 161 */ 162 bool psMinimizeLMChi2_Alt( 126 163 psMinimization *min, ///< Minimization specification 127 164 psImage *covar, ///< Covariance matrix
Note:
See TracChangeset
for help on using the changeset viewer.
