Package park :: Package modelling :: Module parameter :: Class ParameterSet

Class ParameterSet

source code


The set of parameters used to fit theory to data.

ParameterSet forms a hierarchy of parameters. The parameters themselves are referred to by the path through the hierarchy, usually:

fitname.component.parameter

Though more or fewer levels are permitted. Parameters are assumed to have a unique label throughout the fit. This is required so that expressions tying the results of one fit to another can uniquely reference a parameter.

Attributes:

name
the name of the parameter set
path
the full dotted name of the parameter set
context
a dictionary providing additional context for evaluating parameters; Note that this namespace is shared with other theory functions, so populate it carefully.

Operations:

insert
add a new item to the set
append
add a new item to the end of the set
move
reorder the parameters in the set
Instance Methods
 
__init__(self, name='unknown', pars=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__len__(self) source code
 
__getattr__(self, idx)
Allow dotted-name parameter access
source code
 
__getitem__(self, idx)
Allow indexing by name or by number
source code
 
__delitem__(self, idx)
Allow delete by name or by number
source code
 
__setitem__(self, idx, p)
Allow replacement by number
source code
 
__iter__(self)
Force iteration order
source code
 
append(self, p)
Add a parameter to the dictionary
source code
 
insert(self, idx, p)
Add a parameter to the dictionary
source code
 
move(self, idx1, idx2)
Move a parameter to a new position in the dictionary
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  path = ''
Properties
  name
parameter name

Inherited from object: __class__

Method Details

__init__(self, name='unknown', pars=[])
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Property Details

name

parameter name
Get Method:
_getname(self)