openModeller  Version 1.5.0
distance_to_average.hh
Go to the documentation of this file.
1 
29 #ifndef _DISTANCE_TO_AVERAGEHH__
30 #define _DISTANCE_TO_AVERAGEHH__
31 
32 #include <openmodeller/om.hh>
33 
34 /****************************************************************/
35 /************************ Distance To Average *******************/
36 
43 {
44 public:
45 
47  virtual ~DistanceToAverage();
48 
49  int initialize();
50  int iterate();
51  int done() const;
52 
53  Scalar getValue( const Sample& x ) const;
54  int getConvergence( Scalar *val );
55 
56 protected:
57  virtual void _getConfiguration( ConfigurationPtr& ) const;
58  virtual void _setConfiguration( const ConstConfigurationPtr& );
59 
60 private:
61 
62  bool _done;
64  mutable Scalar _min;
65  mutable Scalar _max;
66 
68 };
69 
70 
71 #endif
72 
double Scalar
Type of map values.
Definition: om_defs.hh:39
Sample _avg
Average related to occurrence points.
Scalar _max
Store the maximum distance (for debug).
virtual void _getConfiguration(ConfigurationPtr &) const
Scalar getValue(const Sample &x) const
int getConvergence(Scalar *val)
Scalar _min
Store the minimum distance (for debug).
virtual void _setConfiguration(const ConstConfigurationPtr &)
Definition: Sample.hh:25