Changeset e3ae090 in sasview for src/sas/sasgui/plottools/fittings.py
- Timestamp:
- Jul 12, 2016 9:12:24 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 4b71e91
- Parents:
- 8cb6cd6
- git-author:
- wpotrzebowski <Wojciech.Potrzebowski@…> (07/05/16 04:00:02)
- git-committer:
- Piotr Rozyczko <piotr.rozyczko@…> (07/12/16 09:12:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/fittings.py
rd7bb526 re3ae090 1 1 """ 2 This module is used to fit a set of x,y data to a model passed to it. It is 3 used to calculate the slope and intercepts for the linearized fits. Two things 4 should be noted: 5 6 First, this fitting module uses the NLLSQ module of SciPy rather than a linear 7 fit. This along with a few other modules could probably be removed if we 8 move to a linear regression approach. 9 10 Second, this infrastructure does not allow for resolution smearing of the 11 the models. Hence the results are not that accurate even for pinhole 12 collimation of SANS but may be good for SAXS. It is completely wrong for 13 slit smeared data. 14 2 15 """ 3 16 from scipy import optimize … … 6 19 class Parameter(object): 7 20 """ 8 Class to handle model parameters 21 Class to handle model parameters - sets the parameters and their 22 initial value from the model based to it. 9 23 """ 10 24 def __init__(self, model, name, value=None):
Note: See TracChangeset
for help on using the changeset viewer.