Changes between Version 1 and Version 2 of MyModel
- Timestamp:
- May 12, 2008 2:25:16 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MyModel
v1 v2 1 Specific naming conventions must be followed if the Analysis package is to be able to correctly locate and identify the names of functions and macros. In addition, it provides consistency when generating new model functions. This "enforced" naming is essential for the FitManager to automatically find many of the necessary elements for aCurveFit, with a minimum of user input.1 Specific naming conventions must be followed if the Analysis package is to be able to correctly locate and identify the names of functions and macros. In addition, it provides consistency when generating new model functions. This "enforced" naming is essential for the !FitManager to automatically find many of the necessary elements for a !CurveFit, with a minimum of user input. 2 2 3 3 '''(1)''' The "base" name:[[BR]] 4 4 5 SphereForm (can have a MAXIMUM of 20 characters)5 !SphereForm (can have a MAXIMUM of 20 characters) 6 6 7 7 '''(2)''' From the base name the two setup Proc names are constructed:[[BR]] 8 8 9 "Plot"+base => PlotSphereForm9 "Plot"+base => !PlotSphereForm 10 10 11 " PlotSmeared"+base =>PlotSmearedSphereForm11 "!PlotSmeared"+base => !PlotSmearedSphereForm 12 12 13 '''(3)''' The setup Procedures create the parameter names and default coefficients. In order to keep a correspondence between the coefficients and their function, each model must have a unique SUFFIX. For SphereForm, the suffix is "sf". The coefficients and parameter wave names are:13 '''(3)''' The setup Procedures create the parameter names and default coefficients. In order to keep a correspondence between the coefficients and their function, each model must have a unique SUFFIX. For !SphereForm, the suffix is "sf". The coefficients and parameter wave names are: 14 14 15 15 (for the unsmeared calculation) … … 27 27 '''(4)''' The names for the two fit functions are then: 28 28 29 base => SphereForm -- this is the unsmeared model29 base => !SphereForm -- this is the unsmeared model 30 30 31 "Smeared"+base => SmearedSphereForm -- this is the smeared model31 "Smeared"+base => !SmearedSphereForm -- this is the smeared model 32 32 33 '''(5)''' The unsmeared model ( SphereForm) is simply a switch, using either Igor code or XOP code (if present).33 '''(5)''' The unsmeared model (!SphereForm) is simply a switch, using either Igor code or XOP code (if present). 34 34 35 35 "f"+base => fSphereForm -- this is the function, written in Igor's programing language … … 39 39 40 40 Search and replace in the MyModel template will catch all of these changes. 41 [[BR]][[BR]] 42 43 44 45 Back Up to [wiki:CodeDocs Code Documentation][[BR]] 46