Bases: sans.perspectives.fitting.fitproblem.FitProblemComponent
FitProblem class allows to link a model with the new name created in _on_model, a name theory created with that model and the data fitted with the model. FitProblem is mostly used as value of the dictionary by fitting module.
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
clear constraint info
Parameters: | flag – bool.When flag is 1 get the computer smear value. When |
---|
flag is 0 ingore smear value.
Returns: | data associate with this class |
---|
Get graph_id
Returns: | saved model |
---|
return list of couple of parameter name and value
return the list param names to fit
Returns: | fitting range |
---|
Returns: | residuals |
---|
get result
return true or false if a problem as being schedule for fitting
return smear object
Returns: | theory generated with the current model and data of this class |
---|
returns weight array
set schedule to true to decide if this fit must be performed
Store data associated with this class :param data: list of data selected
Set graph id (from data_group_id at the time the graph produced)
associates each model with its new created name :param model: model selected :param name: name created for model
Store the name and value of a parameter of this fitproblem’s model :param name: name of the given parameter :param value: value of that parameter
Store param names to fit (checked) :param list: list of the param names
set fitting range :param qmin: minimum value to consider for the fit range :param qmax: maximum value to consider for the fit range
save a copy of residual :param data: data selected
save reference of smear object on fitdata
Parameters: | smear – smear object from DataLoader |
---|
save a copy of the data select to fit
Parameters: | data – data selected |
---|
Received flag and compute error on data. :param flag: flag to transform error of data. :param is2d: flag to distinguish 1D to 2D Data
Bases: object
Inferface containing information to store data, model, range of data, etc... and retreive this information. This is an inferface for a fitProblem i.e relationship between data and model.
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
clear constraint info
Parameters: | flag – bool.When flag is 1 get the computer smear value. When |
---|
flag is 0 ingore smear value.
Return the caption of the page associated with object
Get graph_id
Returns: | saved model |
---|
return list of couple of parameter name and value
return the list param names to fit
Returns: | fitting range |
---|
Returns: | residuals |
---|
get result
return true or false if a problem as being schedule for fitting
return smear object
Returns: | list of data dList |
---|
get fitting weight
set schedule to true to decide if this fit must be performed
Parameters: | data – list of data selected |
---|
store the caption of the page associated with object
Set graph id (from data_group_id at the time the graph produced)
associates each model with its new created name :param model: model selected :param name: name created for model
Store the name and value of a parameter of this fitproblem’s model :param name: name of the given parameter :param value: value of that parameter
Store param names to fit (checked) :param list: list of the param names
set fitting range
save a copy of residual :param data: data selected
save a copy of the data select to fit :param data: data selected
set fitting range
Bases: sans.perspectives.fitting.fitproblem.FitProblemComponent, dict
This module implements a dictionary of fitproblem objects
alias of type
x.__cmp__(y) <==> cmp(x,y)
x.__delattr__(‘name’) <==> del x.name
x.__delitem__(y) <==> del x[y]
x.__eq__(y) <==> x==y
x.__ge__(y) <==> x>=y
x.__getattribute__(‘name’) <==> x.name
x.__getitem__(y) <==> x[y]
x.__gt__(y) <==> x>y
x.__hash__() <==> hash(x)
x.__iter__() <==> iter(x)
x.__le__(y) <==> x<=y
x.__len__() <==> len(x)
x.__lt__(y) <==> x<y
x.__ne__(y) <==> x!=y
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__setitem__(i, y) <==> x[i]=y
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Add data to the current dictionary of fitproblem. if data id does not exist create a new fit problem. :note: only data changes in the fit problem
clear constraint info
Parameters: | flag – bool.When flag is 1 get the computer smear value. When |
---|
flag is 0 ingore smear value.
v defaults to None.
get result
return data for the given fitproblem id :param fid: is key representing a fitproblem. usually extract from data
id
return fitproblem contained in this dictionary
Return the caption of the page associated with object
Get graph_id
Returns: | saved model |
---|
return list of couple of parameter name and value
return the list param names to fit
Returns: | fitting range |
---|
Returns: | residuals |
---|
get result
return true or false if a problem as being schedule for fitting
return smear object
Returns: | list of data dList |
---|
return fit weight
If key is not found, d is returned if given, otherwise KeyError is raised
2-tuple; but raise KeyError if D is empty
set schedule to true to decide if this fit must be performed
set a list of result
save a copy of the data select to fit :param data: data selected
store the caption of the page associated with object
Set graph id (from data_group_id at the time the graph produced)
associates each model with its new created name :param model: model selected :param name: name created for model
Store the name and value of a parameter of this fitproblem’s model :param name: name of the given parameter :param value: value of that parameter
Store param names to fit (checked) :param list: list of the param names
set fitting range
save a copy of residual :param data: data selected
save reference of smear object on fitdata :param smear: smear object from DataLoader
save a copy of the data select to fit :param data: data selected
fit weight
(if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]