IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2010, 9:18:39 AM (16 years ago)
Author:
Serge CHASTEL
Message:

Merging trunk in branch

Location:
branches/sc_branches/trunkTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/trunkTest

  • branches/sc_branches/trunkTest/psLib/src/math/psMinimizeLMM.h

    r23486 r29060  
    3333#define PS_MAX_LMM_ITERATIONS 100
    3434#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; }
    3738
    3839                typedef enum {
     
    7576typedef struct
    7677{
    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)
    7981    float value;                       ///< Value of function at minimum
    8082    int iter;                          ///< Number of iterations to date
    8183    float lastDelta;                   ///< The last difference for the fit
     84    float maxChisqDOF;                 ///< for Chisq minimization, require that we reach here before checking tolerance
    8285}
    8386psMinimization;
     
    102105psMinimization *psMinimizationAlloc(
    103106    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
    105109) PS_ATTR_MALLOC;
    106110
Note: See TracChangeset for help on using the changeset viewer.