Changeset 2808 in Sophya for trunk/SophyaLib/NTools/simplex.h


Ignore:
Timestamp:
Jun 14, 2005, 1:25:05 PM (20 years ago)
Author:
ansari
Message:

MAJ documentation - Reza 14/6/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/simplex.h

    r2650 r2808  
    2828namespace SOPHYA {
    2929
    30 //! Interface definition for multivaruable function (used by SimplexMinmizer)
     30//! Interface definition for multivariable function (used by SimplexMinmizer)
    3131class MinZFunction {
    3232public:
     
    4242};
    4343
    44 //!  Classe implementing MinZFunction for a GeneralXi2 associated with a GeneralFitData
     44//!  Wrapper class implementing MinZFunction for a GeneralXi2 associated with a GeneralFitData
    4545class MinZFuncXi2 : public MinZFunction {
    4646public:
     
    6161  virtual        ~MinZSimplex();
    6262
     63  //! Return the parameter space dimension
    6364  inline int     NDim() { return mZF->NVar(); }
    6465  // Simplex initial
     66  //! Defines the initial point (center of simplex figure)
    6567  inline void    SetInitialPoint(Vector& point) { mPoint0 = point; }
     68  //! Defines the step along each dimension to construct the simplex from initial point
    6669  inline void    SetInitialStep(Vector& step) { mStep0 = step; }
    6770
     71  //! Set the info/debug print level 
    6872  inline void    SetPrtLevel(int lev=0) { mPrt = lev; }
     73  //! Return the current print level
    6974  inline int     PrtLevel() { return mPrt; }
    7075
     76  //! Set the maximum number of iteration
    7177  inline void    SetMaxIter(int max = 100000) { mMaxIter = max; }
     78  //! Return the current  max iter
    7279  inline int     MaxIter() { return mMaxIter; }
     80  //! Return the number of iterations performed
    7381  inline int     NbIter() { return mIter; }
     82  //! Return the stop reason
    7483  inline int     StopReason() { return mStop; }
     84  //! Return the stop reason and a description string (\b s)
    7585         int     StopReason(string& s);
    7686
     
    8696  //  [Delta f/f]simplex              < mTol1   mRep1 fois de suite    OU
    8797  //  [Delta f_max/f_max]iter         < mTol2   mRep2 fois de suite
    88   //
     98
     99  //! Define the tolerances for the various convergence tests
    89100  inline void    SetStopTolerance(double tol0=1.e-39, double tol1 = 1.e-3, int rep1=5,
    90101                                  double tol2=1.e-4, int rep2=5)   
     
    97108  // Beta2  = Facteur d'homothetie pour la contraction vers le sommet bas f_min (ContractLow)
    98109  // Gamma2 = Facteur d'homothetie pour la l'extension pour le sommet haut ExpandHigh
     110
     111  //! Define the similarity (homothetic) factors for the different simplex transformations
    99112  inline void    SetControls(double alpha=1., double beta=0.5, double beta2=0.5,
    100113                             double gamma=2.0, double gamma2=2.0)
    101114                 { mAlpha = alpha; mBeta = beta; mBeta2 = beta2;  mGamma = gamma; mGamma2 = gamma2;} 
    102115
     116  //! Return the the homothetic factor for Reflection
    103117  inline double  Alpha() { return mAlpha; }
     118  //! Return the the homothetic factor for ContractHigh (contraction away from high point)
    104119  inline double  Beta() { return mBeta; }
     120  //! Return the the homothetic factor for ContractLow (contraction toward the low point)
    105121  inline double  Beta2() { return mBeta2; }
     122  //! Return the the homothetic factor for ReflecExpand (reflection+expansion)
    106123  inline double  Gamma() { return mGamma; }
     124  //! Return the the homothetic factor for ExpandHigh (expansion along high point)
    107125  inline double  Gamma2() { return mGamma2; }
    108126
Note: See TracChangeset for help on using the changeset viewer.