[root] / trunk / math / mathcore / inc / Fit / ParameterSettings.h Repository:
ViewVC logotype

Diff of /trunk/math/mathcore/inc/Fit/ParameterSettings.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25485, Mon Sep 22 07:52:52 2008 UTC revision 25486, Mon Sep 22 12:43:03 2008 UTC
# Line 69  Line 69 
69    
70    
71    
72     /// set value and name     /// set value and name (unlimited parameter)
73     void Set(const std::string & name, double value, double step, double lower = 1, double upper = -1) {     void Set(const std::string & name, double value, double step) {
74          SetName(name);
75          SetValue(value);
76          SetStepSize(step);
77       }
78    
79       /// set a limited parameter
80       void Set(const std::string & name, double value, double step, double lower, double upper ) {
81        SetName(name);        SetName(name);
82        SetValue(value);        SetValue(value);
83        SetStepSize(step);        SetStepSize(step);
# Line 95  Line 102 
102  public:  public:
103    
104     /// return parameter value     /// return parameter value
105     double Value() { return fValue; }     double Value() const { return fValue; }
106     /// return step size     /// return step size
107     double StepSize() { return fStepSize; }     double StepSize() const { return fStepSize; }
108     /// return lower limit value     /// return lower limit value
109     double LowerLimit() const {return fLowerLimit;}     double LowerLimit() const {return fLowerLimit;}
110     /// return lower limit value     /// return lower limit value
# Line 113  Line 120 
120     /// check if is double bound (upper AND lower limit)     /// check if is double bound (upper AND lower limit)
121     bool IsDoubleBound() const { return fHasLowerLimit && fHasUpperLimit;  }     bool IsDoubleBound() const { return fHasLowerLimit && fHasUpperLimit;  }
122     /// return name     /// return name
123     const std::string & Name() { return fName; }     const std::string & Name() const { return fName; }
124    
125     /** interaction **/     /** interaction **/
126    

Legend:
Removed from v.25485  
changed lines
  Added in v.25486

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9