Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/pringle.c

    r58c3367 rc047acf  
    4242    } 
    4343 
     44    #if 1 
     45    // TODO: should the normalization be to R^2 or the last value, r^2 
     46    // the gaussian window does not go all the way from 0 to 1. 
     47    //radius = Gauss76Z[75] * zm + zb; 
     48    *Sn = zm*sumS / (r*r); 
     49    *Cn = zm*sumC / (r*r); 
     50    #else 
    4451    *Sn = zm*sumS / (radius*radius); 
    4552    *Cn = zm*sumC / (radius*radius); 
     53    #endif 
    4654} 
    4755 
     
    101109double form_volume(double radius, double thickness, double alpha, double beta) 
    102110{ 
    103     return M_PI*radius*radius*thickness; 
     111    // TODO: Normalize by form volume 
     112    //return M_PI*radius*radius*thickness; 
     113    return 1.0; 
    104114} 
    105115 
     
    116126    double contrast = sld_pringle - sld_solvent; 
    117127    double volume = M_PI*radius*radius*thickness; 
    118     return 1.0e-4*form * square(contrast * volume); 
     128    // TODO: If normalize by form volume, need an extra volume here 
     129    //return 1.0e-4*form * square(contrast * volume); 
     130    return 1.0e-4*form * square(contrast) * volume; 
    119131} 
Note: See TracChangeset for help on using the changeset viewer.