openModeller  Version 1.5.0
envelope_score.hh
Go to the documentation of this file.
1 
32 #ifndef _ENVELOPESCOREHH_
33 #define _ENVELOPESCOREHH_
34 
35 #include <openmodeller/om.hh>
36 
37 /****************************************************************/
38 /*********************** EnvelopeScore ***********************/
39 
46 {
47 public:
48 
49  EnvelopeScore();
51 
52  // Inherited from Algorithm class.
53  int initialize();
54  int iterate();
55  int done() const;
56 
57  Scalar getValue( const Sample& x ) const;
58  int getConvergence( Scalar * const val ) const;
59 
60 protected:
61  virtual void _getConfiguration( ConfigurationPtr& ) const;
62  virtual void _setConfiguration( const ConstConfigurationPtr & );
63 
64 private:
65 
68  void computeStats( const OccurrencesPtr& );
69 
71  void logEnvelope();
72 
73  bool _done;
74 
77 
78 };
79 
80 
81 #endif //ENVELOPESCOREHH
82 
int done() const
double Scalar
Type of map values.
Definition: om_defs.hh:39
virtual void _setConfiguration(const ConstConfigurationPtr &)
Scalar getValue(const Sample &x) const
Sample _maximum
Mininum value for each variable.
virtual void _getConfiguration(ConfigurationPtr &) const
void computeStats(const OccurrencesPtr &)
int getConvergence(Scalar *const val) const
Sample _minimum
is true if the algorithm is finished.
Definition: Sample.hh:25