FunctionParameter.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _FunctionParameter_H_
15 #define _FunctionParameter_H_
16 
17 #include "pattern/libhippo.h"
18 
19 #include <string>
20 
21 namespace hippodraw {
22 
32 {
33 
34 private:
35 
38  std::string m_name;
39 
42  double m_value;
43 
46  double m_error;
47 
50  double m_lower_limit;
51 
54  double m_upper_limit;
55 
58  bool m_fixed;
59 
66 
67 public:
68 
71  FunctionParameter ( const std::string & name,
72  double value,
73  double error,
74  bool fixed,
75  double low_limit,
76  double high_limit,
77  bool has_low,
78  bool has_high );
79 
80  /* Taking default copy constructor.
81  * FunctionParameter ( const FunctionParameter & );
82  */
83 
86  const std::string & name () const;
87 
90  double value () const;
91 
94  double error () const;
95 
98  bool isFixed () const;
99 
102  double lowerLimit () const;
103 
106  double upperLimit () const;
107 
110  bool hasLowerLimit () const;
111 
114  bool hasUpperLimit () const;
115 
116 };
117 
118 } // namespace hippodraw
119 
120 #endif // _FunctionParameter_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
bool m_has_upper
The has uppper limit flag.
bool m_has_lower
The has low limit flag.
double m_upper_limit
the upper limit allowed during fitting.
double m_error
The error on the value after fitting.
A class to collect function parameters from a FunctionBase object but also the constraints and errors...
double m_value
The value of the parameter.
bool m_fixed
The fixed flag used by the minimizer.
std::string m_name
The name of the parameter.
double m_lower_limit
The lower limit allowed during fitting.

Generated for HippoDraw Class Library by doxygen