Ticket #614 (closed: duplicate)
Fit1D: Allow specific curve fits to cutomise the Fit Quailty test
Reported by: | Nick Draper | Owned by: | Roman Tolchenov |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 24 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: | Nick Draper |
Description (last modified by Nick Draper) (diff)
At the moment the Fit1D class uses the chi2 test for evaluating the quality of the fit. We should change this so that this is used as the default, but specific curve fits can choose to overload the function if they should wish.
An simple example is when a fit know that a certain parameter e.g. peak width will always be within a certain range 0-5. They could override the chi2 test and implement their own which would do the following.
- run the base chi2 test
- inspect the peak width value
- if it is out of range then apply a large penalty to the chi2 value.
A good example in one of our algorithms of this would be the hwhm (half width half maximum) in Lorenzian1D. This should never be negative.
Change History
comment:2 Changed 11 years ago by Nick Draper
- Milestone changed from Iteration 18 to Iteration 19
Moved as part of iteration 18 end
comment:3 Changed 11 years ago by Nick Draper
- Milestone changed from Iteration 19 to Iteration 20
Moved as part of the end of Iteration 19
comment:4 Changed 10 years ago by Roman Tolchenov
- Status changed from new to verify
- Resolution set to duplicate