IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 2:30:22 PM (13 years ago)
Author:
eugene
Message:

add new psMinimizeLMChi2 function with new convergence criterion; add threaded version of psImageSmoothNoMask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizeLMM.h

    r28998 r35767  
    3030#include "psConstants.h"
    3131
     32# define PS_MINIMIZE_LMM_GAIN_FACTOR_MODE 0
     33# define PS_MINIMIZE_LMM_CHISQ_CONVERGENCE 1
     34
    3235#define PS_DETERMINE_BRACKET_STEP_SIZE 0.10
    3336#define PS_MAX_LMM_ITERATIONS 100
     
    8285    int iter;                          ///< Number of iterations to date
    8386    float lastDelta;                   ///< The last difference for the fit
     87    float rParSigma;                   ///< last fractional change in the parameters
    8488    float maxChisqDOF;                 ///< for Chisq minimization, require that we reach here before checking tolerance
     89    int gainFactorMode;
     90    bool chisqConvergence;
    8591}
    8692psMinimization;
     
    124130 */
    125131bool 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 */
     146bool 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 */
     162bool psMinimizeLMChi2_Alt(
    126163    psMinimization *min,               ///< Minimization specification
    127164    psImage *covar,                    ///< Covariance matrix
Note: See TracChangeset for help on using the changeset viewer.