Changeset fd57185 in sasview for sansmodels/src/sans/models
- Timestamp:
- Jan 22, 2009 4:10:45 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/parameters.cpp
rfca6936 rfd57185 115 115 width = 0.0; 116 116 npts = 1; 117 nsigmas = 3; 117 118 } 118 119 … … 125 126 for(int i=0; i<npts; i++) { 126 127 // 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); 128 129 129 130 if ( ((*par).has_min==false || val>(*par).min)
Note: See TracChangeset
for help on using the changeset viewer.