• Main Page
  • Classes
  • Files
  • File List

src/optimizer.h

00001 /*
00002  *   See COPYING file distributed along with the psignifit package for
00003  *   the copyright and license terms
00004  */
00005 #ifndef OPTIMIZER_H
00006 #define OPTIMIZER_H
00007 
00008 #include <vector>
00009 #include "psychometric.h"
00010 #include "data.h"
00011 
00013 class PsiOptimizer
00014 {
00015         private:
00016                 // some variables for the internal processing of the optimization process
00017                 int nparameters;                             // Number of parameters
00018                 std::vector< std::vector<double> > simplex;  // data of the simplex
00019                 std::vector<double> fx;                      // function values at the simplex nodes
00020                 std::vector<double> x;                       // a single simplex node
00021                 std::vector<double> xx;                      // another single simplex node
00022                 std::vector<double> start;                   // starting values
00023                 std::vector<bool>   modified;                // bookkeeping vector to indicate which simplex nodes have changed, i.e. which function values need to be updated
00024         public:
00025                 PsiOptimizer (
00026                         const PsiPsychometric * model,           
00027                         const PsiData * data                     
00028                         ); 
00029                 ~PsiOptimizer ( void );                                   
00030                 std::vector<double> optimize (
00031                         const PsiPsychometric * model,           
00032                         const PsiData * data,                    
00033                         const std::vector<double>* startingvalue=NULL    
00034                         ); 
00035 };
00036 
00037 #endif

Generated on Mon Jul 4 2011 14:52:04 for Psi++ by  doxygen 1.7.1