Changeset fd57185 in sasview for sansmodels/src/sans


Ignore:
Timestamp:
Jan 22, 2009 6:10:45 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
32d802f
Parents:
89032bf
Message:

Add nsigmas as an input parameter to Gaussian dispersion (previously it was fixed at 2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/parameters.cpp

    rfca6936 rfd57185  
    115115                width = 0.0; 
    116116                npts  = 1; 
     117                nsigmas = 3; 
    117118        } 
    118119 
     
    125126                for(int i=0; i<npts; i++) { 
    126127                        // We cover 2 sigmas on each side of the mean 
    127                         double val = value + width * (4.0*i/float(npts-1) - 2.0); 
     128                        double val = value + width * (2.0*nsigmas*i/float(npts-1) - nsigmas); 
    128129 
    129130                        if ( ((*par).has_min==false || val>(*par).min) 
Note: See TracChangeset for help on using the changeset viewer.