Changeset c61228f in sasview for pr_inversion
- Timestamp:
- Jun 9, 2008 2:54:24 PM (17 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:
- 105614c
- Parents:
- 0be5c81
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pr_inversion/c_extensions/invertor.c
r43c0a8e rc61228f 197 197 value = pr(pars, d_max, n_c, r); 198 198 if (value>0.0) sum_pos += value; 199 sum += value;199 sum += fabs(value); 200 200 } 201 201 return sum_pos/sum; … … 219 219 pr_err(pars, err, d_max, n_c, r, &pr_val, &pr_val_err); 220 220 if (pr_val>pr_val_err) sum_pos += pr_val; 221 sum += pr_val;221 sum += fabs(pr_val); 222 222 223 223
Note: See TracChangeset
for help on using the changeset viewer.