openModeller  Version 1.4.0
generictemplate.hh
Go to the documentation of this file.
00001 
00029 #ifndef GENERIC_TEMPLATE_H
00030 #define GENERIC_TEMPLATE_H
00031 
00032 #include <om.hh>
00033 
00041 class GenericTemplate : public Algorithm
00042 {
00043 public:
00044 
00046     GenericTemplate();
00048     ~GenericTemplate();
00049     
00050     public:
00051 
00052   //
00053   // Methods used to build the model
00054   //
00055   
00061   int initialize( int ncycle );
00062   
00067   int iterate();
00068   
00075   int done() const;
00076 
00077   //
00078   // Methods used to project the model
00079   //
00080   
00081   
00086   Scalar getValue( Scalar const *x ) const;
00087   
00094   int getConvergence( Scalar *val );
00095 
00096 
00097 private:
00098   
00101   int    f_done;
00102   
00103   Scalar *f_avg;  
00104   int     f_dim;  
00105   //set the class member that holds the number of occurences
00106   int f_localityCount;
00107 };
00108 
00109 #endif