| Home | Trees | Indices | Help |
|
|---|
|
|
Parameter is class for value and properties of refined parameter.
Because the initial value of Parameter may come from another Fitting,
it is accessed by setInitial(), initialStr() and initialValue() methods.
Data members:
idx -- integer identifier of this parameter in PdfFit
name -- optional description
refined -- refined value of the parameter, float or None.
fixed -- flag for fixing the parameter in refinement [False]
Private members:
__initial -- stores the initial value, float, or "=fitname:idx" string
__fitrepr -- None or string representation of Fitting instance
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Initialize new parameter
idx -- idx of this parameter in PdfFit
initial -- optional initial value of the parameter.
It can be float, Fitting, "=fitname" or "=fitname:idx" string.
|
set initial value to float or refined value from another Fitting.
initial -- initial value, it can be something convertible to float,
Fitting reference or string in "=fitname" or
"=fitname:idx" format.
|
Convert initial value to string. returns string in "=fitname:idx" or "%f" format |
Convert initial value to float.
For linked parameters it may raise:
ControlKeyError if source Fitting does not exist
KeyError when parameter does not exist
ControlRunTimeError for self-dependent parameters
returns the initial value
|
Private search for linked Fitting by name and by representation. Should be called only when initial value is linked to another Fitting. Updates self.__initial and self.__fitrepr. returns reference to Fitting when found or None |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Fri Apr 10 19:11:01 2009 | http://epydoc.sourceforge.net |