Changeset 325bc4a in sasview for sansmodels/src/c_models
- Timestamp:
- Jul 16, 2012 4:11:09 AM (12 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:
- dc9660d
- Parents:
- 0da4eba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/c_models/GelFit.cpp
r0da4eba r325bc4a 27 27 #include "GelFit.h" 28 28 29 typedef struct { 30 double lScale; 31 double gScale; 32 double zeta; 33 double radius; 34 double scale; 35 double background; 36 } 37 38 GelFitModel :: GelFitModel() 29 GelFitModel::GelFitModel() 39 30 { 40 31 lScale = Parameter(3.5); … … 47 38 } 48 39 49 double GelFitModel ::operator()(double q)40 double GelFitModel::operator()(double q) 50 41 { 51 42 double dp[3]; … … 74 65 75 66 // Scattering Law 76 ///////////////////////////////ycal[j] = ((lScale/c) + (gScale*f) + bkgd);77 return ((lScale()/c) + (gScale()*f) + background());67 double result((lScale()/c) + (gScale()*f) + background()); 68 return result; 78 69 } 79 70 … … 85 76 * @return: function value 86 77 */ 87 double GelFitModel ::operator()(double qx, double qy)78 double GelFitModel::operator()(double qx, double qy) 88 79 { 89 80 double q = sqrt(qx*qx + qy*qy); … … 98 89 * @return: function value 99 90 */ 100 double GelFitModel ::evaluate_rphi(double q, double phi)91 double GelFitModel::evaluate_rphi(double q, double phi) 101 92 { 102 93 double qx = q*cos(phi); … … 108 99 * @return: effective radius value 109 100 */ 110 double GelFitModel ::calculate_ER()101 double GelFitModel::calculate_ER() 111 102 { 112 103 //NOT implemented yet!!! 113 104 return 0.0; 114 105 } 115 double GelFitModel ::calculate_VR()106 double GelFitModel::calculate_VR() 116 107 { 117 108 return 1.0;
Note: See TracChangeset
for help on using the changeset viewer.