Changeset 5eb9154 in sasview for sansmodels/src/sans/models/c_models/models.hh
- Timestamp:
- Aug 31, 2009 5:25:44 PM (15 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:
- 5be36bb
- Parents:
- 572beba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/models.hh
re2afadf r5eb9154 43 43 double operator()(double q); 44 44 double operator()(double qx, double qy); 45 double calculate_ER(); 45 46 double evaluate_rphi(double q, double phi); 46 47 }; … … 66 67 double operator()(double q); 67 68 double operator()(double qx, double qy); 69 double calculate_ER(); 68 70 double evaluate_rphi(double q, double phi); 69 71 }; … … 84 86 double operator()(double q); 85 87 double operator()(double qx, double qy); 88 double calculate_ER(); 86 89 double evaluate_rphi(double q, double phi); 87 90 }; … … 90 93 public: 91 94 // Model parameters 92 Parameter radius;95 Parameter effect_radius; 93 96 Parameter volfraction; 94 97 … … 99 102 double operator()(double q); 100 103 double operator()(double qx, double qy); 104 double calculate_ER(); 101 105 double evaluate_rphi(double q, double phi); 102 106 }; … … 105 109 public: 106 110 // Model parameters 107 Parameter radius;111 Parameter effect_radius; 108 112 Parameter volfraction; 109 113 Parameter perturb; … … 116 120 double operator()(double q); 117 121 double operator()(double qx, double qy); 122 double calculate_ER(); 118 123 double evaluate_rphi(double q, double phi); 119 124 }; … … 122 127 public: 123 128 // Model parameters 124 Parameter radius;129 Parameter effect_radius; 125 130 Parameter volfraction; 126 131 Parameter welldepth; … … 133 138 double operator()(double q); 134 139 double operator()(double qx, double qy); 140 double calculate_ER(); 135 141 double evaluate_rphi(double q, double phi); 136 142 }; … … 139 145 public: 140 146 // Model parameters 141 Parameter radius;147 Parameter effect_radius; 142 148 Parameter charge; 143 149 Parameter volfraction; … … 152 158 double operator()(double q); 153 159 double operator()(double qx, double qy); 160 double calculate_ER(); 154 161 double evaluate_rphi(double q, double phi); 155 162 }; … … 167 174 double operator()(double q); 168 175 double operator()(double qx, double qy); 176 double calculate_ER(); 169 177 double evaluate_rphi(double q, double phi); 170 178 }; … … 182 190 double operator()(double q); 183 191 double operator()(double qx, double qy); 192 double calculate_ER(); 184 193 double evaluate_rphi(double q, double phi); 185 194 }; … … 202 211 double operator()(double q); 203 212 double operator()(double qx, double qy); 213 double calculate_ER(); 204 214 double evaluate_rphi(double q, double phi); 205 215 }; … … 225 235 double operator()(double q); 226 236 double operator()(double qx, double qy); 237 double calculate_ER(); 227 238 double evaluate_rphi(double q, double phi); 228 239 }; … … 245 256 double operator()(double q); 246 257 double operator()(double qx, double qy); 258 double calculate_ER(); 247 259 double evaluate_rphi(double q, double phi); 248 260 }; … … 267 279 double operator()(double q); 268 280 double operator()(double qx, double qy); 281 double calculate_ER(); 269 282 double evaluate_rphi(double q, double phi); 270 283 }; … … 288 301 double operator()(double q); 289 302 double operator()(double qx, double qy); 303 double calculate_ER(); 290 304 double evaluate_rphi(double q, double phi); 291 305 }; … … 309 323 double operator()(double q); 310 324 double operator()(double qx, double qy); 325 double calculate_ER(); 311 326 double evaluate_rphi(double q, double phi); 312 327 }; … … 334 349 double operator()(double q); 335 350 double operator()(double qx, double qy); 351 double calculate_ER(); 336 352 double evaluate_rphi(double q, double phi); 337 353 }; … … 352 368 double operator()(double q); 353 369 double operator()(double qx, double qy); 370 double calculate_ER(); 354 371 double evaluate_rphi(double q, double phi); 355 372 … … 373 390 double operator()(double q); 374 391 double operator()(double qx, double qy); 392 double calculate_ER(); 375 393 double evaluate_rphi(double q, double phi); 376 394 … … 396 414 double operator()(double q); 397 415 double operator()(double qx, double qy); 416 double calculate_ER(); 398 417 double evaluate_rphi(double q, double phi); 399 418 }; … … 419 438 double operator()(double q); 420 439 double operator()(double qx, double qy); 440 double calculate_ER(); 421 441 double evaluate_rphi(double q, double phi); 422 442 }; … … 442 462 double operator()(double q); 443 463 double operator()(double qx, double qy); 444 double evaluate_rphi(double q, double phi); 445 }; 446 447 class OblateModel{ 448 public: 449 // Model parameters 450 Parameter scale; 451 Parameter major_core; 452 Parameter minor_core; 453 Parameter major_shell; 454 Parameter minor_shell; 455 Parameter contrast; 456 Parameter sld_solvent; 457 Parameter background; 458 Parameter axis_theta; 459 Parameter axis_phi; 460 461 // Constructor 462 OblateModel(); 463 464 // Operators to get I(Q) 465 double operator()(double q); 466 double operator()(double qx, double qy); 467 double evaluate_rphi(double q, double phi); 468 }; 469 class ProlateModel{ 470 public: 471 // Model parameters 472 Parameter scale; 473 Parameter major_core; 474 Parameter minor_core; 475 Parameter major_shell; 476 Parameter minor_shell; 477 Parameter contrast; 478 Parameter sld_solvent; 479 Parameter background; 480 Parameter axis_theta; 481 Parameter axis_phi; 482 483 // Constructor 484 ProlateModel(); 485 486 // Operators to get I(Q) 487 double operator()(double q); 488 double operator()(double qx, double qy); 489 double evaluate_rphi(double q, double phi); 490 }; 464 double calculate_ER(); 465 double evaluate_rphi(double q, double phi); 466 }; 467 491 468 class HollowCylinderModel{ 492 469 public: … … 507 484 double operator()(double q); 508 485 double operator()(double qx , double qy); 486 double calculate_ER(); 509 487 double evaluate_rphi(double q, double phi); 510 488 }; … … 528 506 double operator()(double q); 529 507 double operator()(double qx , double qy); 508 double calculate_ER(); 530 509 double evaluate_rphi(double q, double phi); 531 510 }; … … 547 526 double operator()(double q); 548 527 double operator()(double qx , double qy); 528 double calculate_ER(); 549 529 double evaluate_rphi(double q, double phi); 550 530 }; … … 568 548 double operator()(double q); 569 549 double operator()(double qx , double qy); 550 double calculate_ER(); 570 551 double evaluate_rphi(double q, double phi); 571 552 }; … … 589 570 double operator()(double q); 590 571 double operator()(double qx , double qy); 572 double calculate_ER(); 591 573 double evaluate_rphi(double q, double phi); 592 574 };
Note: See TracChangeset
for help on using the changeset viewer.