LinearSumFunction.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _LinearSumFunction_H_
15 #define _LinearSumFunction_H_
16 
17 #include "functions/FunctionBase.h"
18 
19 namespace hippodraw {
20 
27 {
28 
29 private:
30 
31  typedef std::vector < FunctionBase * > FunctionList_t;
33 
34 protected:
35 
37  virtual void initialize ();
38 
39 public:
40 
43 
46 
47  virtual FunctionBase * clone () const;
48 
49  const std::vector < std::string > & parmNames() const;
50 
51  void freeParmNames ( std::vector< std::string > & names ) const;
52 
53  virtual const std::vector< double > & getParameters () const;
54 
55  virtual std::vector< double >::const_iterator
56  setParameters ( std::vector< double >::const_iterator it );
57 
60  virtual int count ();
61 
62  virtual int size () const;
63 
65  virtual bool isComposite () const;
66 
68  virtual void addToComposite ( FunctionBase * );
69 
71  virtual void removeFromComposite ( FunctionBase * );
72 
74  virtual double operator () ( double x ) const;
75 
76  virtual void initialParameters ( const FunctionHelper * helper );
77 
78  virtual double derivByParm ( int i, double x ) const;
79 
80 };
81 
82 } // namespace hippodraw
83 
84 #endif // _LinearSumFunction_H_

Generated for HippoDraw Class Library by doxygen