Changes between Version 1 and Version 2 of MyModel


Ignore:
Timestamp:
May 12, 2008 2:25:16 PM (14 years ago)
Author:
srkline
Comment:

--

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 a CurveFit, with a minimum of user input. 
     1Specific 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. 
    22 
    33'''(1)''' The "base" name:[[BR]] 
    44 
    5 SphereForm (can have a MAXIMUM of 20 characters) 
     5!SphereForm (can have a MAXIMUM of 20 characters) 
    66 
    77'''(2)''' From the base name the two setup Proc names are constructed:[[BR]] 
    88 
    9 "Plot"+base => PlotSphereForm 
     9"Plot"+base => !PlotSphereForm 
    1010 
    11 "PlotSmeared"+base => PlotSmearedSphereForm 
     11"!PlotSmeared"+base => !PlotSmearedSphereForm 
    1212 
    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: 
    1414 
    1515(for the unsmeared calculation) 
     
    2727'''(4)''' The names for the two fit functions are then: 
    2828 
    29 base => SphereForm -- this is the unsmeared model 
     29base => !SphereForm -- this is the unsmeared model 
    3030 
    31 "Smeared"+base => SmearedSphereForm  -- this is the smeared model 
     31"Smeared"+base => !SmearedSphereForm  -- this is the smeared model 
    3232 
    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).  
    3434 
    3535"f"+base => fSphereForm  -- this is the function, written in Igor's programing language 
     
    3939 
    4040Search and replace in the MyModel template will catch all of these changes. 
     41[[BR]][[BR]] 
     42 
     43 
     44 
     45Back Up to  [wiki:CodeDocs Code Documentation][[BR]] 
     46