Changeset 0fff338f in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Apr 23, 2010 11:45:46 AM (15 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:
f7a5c7e
Parents:
0a8759f
Message:

changed the defaults of polydisp param

File:
1 edited

Legend:

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

    rc5607fa r0fff338f  
    8383 
    8484GaussianDispersion :: GaussianDispersion() { 
    85         npts  = 1; 
     85        npts  = 21; 
    8686        width = 0.0; 
    87         nsigmas = 2; 
     87        nsigmas = 3; 
    8888}; 
    8989 
     
    143143 
    144144LogNormalDispersion :: LogNormalDispersion() { 
    145         npts  = 1; 
     145        npts  = 21; 
    146146        width = 0.0; 
    147         nsigmas = 2; 
     147        nsigmas = 3; 
    148148}; 
    149149 
     
    203203 
    204204SchulzDispersion :: SchulzDispersion() { 
    205         npts  = 1; 
     205        npts  = 21; 
    206206        width = 0.0; 
    207         nsigmas = 2; 
     207        nsigmas = 3; 
    208208}; 
    209209 
     
    284284        } else { 
    285285                for(int i=0; i<npts; i++) { 
    286                         if ( ((*par).has_min==false || _values[i]>(*par).min) 
    287                           && ((*par).has_max==false || _values[i]<(*par).max)  ) 
    288                                 weights.insert(weights.end(), WeightPoint(_values[i], _weights[i])); 
     286                        double val = _values[i]; //+ value;  //ToDo: Talk to Paul and put back the 'value'. 
     287                        if ( ((*par).has_min==false || val>(*par).min) 
     288                          && ((*par).has_max==false || val<(*par).max)  ) 
     289                                weights.insert(weights.end(), WeightPoint(val, _weights[i])); 
    289290                } 
    290291        } 
Note: See TracChangeset for help on using the changeset viewer.