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 const std::vector < int > & getFixedFlags () const;
56 
57  virtual std::vector< double >::const_iterator
58  setParameters ( std::vector< double >::const_iterator it );
59 
62  virtual int count ();
63 
64  virtual int size () const;
65 
67  virtual bool isComposite () const;
68 
70  virtual void addToComposite ( FunctionBase * );
71 
73  virtual void removeFromComposite ( FunctionBase * );
74 
76  virtual double operator () ( double x ) const;
77 
78  virtual void initialParameters ( const FunctionHelper * helper );
79 
80  virtual double derivByParm ( int i, double x ) const;
81 
82 };
83 
84 } // namespace hippodraw
85 
86 #endif // _LinearSumFunction_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
A function that can be used with a fitter.
std::vector< FunctionBase * > FunctionList_t
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
intp size(numeric::array arr)
Definition: num_util.cpp:296
A function that can be added to a DataRep and used in a fitter.
Definition: FunctionBase.h:90
An abstract base class to help FunctionBase objects perform some operations.
hippodraw::FunctionBase class interface
list< QAction * >::iterator it

Generated for HippoDraw Class Library by doxygen