openModeller  Version 1.4.0
AverageModel.hh
Go to the documentation of this file.
00001 
00002 #ifndef _AVERAGEMODEL_HH
00003 #define _AVERAGEMODEL_HH
00004 
00005 #include <openmodeller/om_defs.hh>
00006 #include <openmodeller/Model.hh>
00007 
00008 #include <vector>
00009 
00010 class AverageModelImpl;
00011 
00012 typedef ReferenceCountedPointer<AverageModelImpl> AverageModelPtr;
00013 
00014 class AverageModelImpl : public ModelImpl
00015 {
00016 
00017 public:
00018   AverageModelImpl();
00019   
00020   virtual ~AverageModelImpl();
00021   
00025   virtual void setNormalization( const SamplerPtr& samp ) const ;
00026   
00030   virtual void setNormalization( const EnvironmentPtr& env ) const;
00031 
00032   virtual Scalar getValue( const Sample& x ) const;
00033   
00034   virtual void addModel( Model model );
00035   
00036 private:
00037   
00038   std::vector<Model> _models;
00039   Scalar _size;
00040 };
00041 
00042 #endif