Changeset 2cce133 in sasview
- Timestamp:
- Nov 24, 2009 4:51:01 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:
- 2733188
- Parents:
- 669aaf9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Invariant/invariant.py
r669aaf9 r2cce133 317 317 Compute the surface given by: 318 318 surface = (2*pi *V(1- V)*porod_const)/ q_star 319 319 320 320 @param contrast: contrast value to compute the volume 321 321 @param porod_const: Porod constant to compute the surface 322 @return: specific surface 322 @return: specific surface 323 323 """ 324 324 … … 418 418 def get_volume_fraction_with_error(self, contrast): 419 419 """ 420 Compute uncertainty on volume value .420 Compute uncertainty on volume value as well as the volume fraction 421 421 This uncertainty is given by the following equation: 422 422 dV = 0.5 * (4*k* dq_star) /(2* math.sqrt(1-k* q_star)) 423 423 424 424 for k = 10^(8)*q_star/(2*(pi*|contrast|)**2) 425 425 426 q_star: the invariant value including extrapolated value if existing 426 427 dq_star: the invariant uncertainty 427 428 dV: the volume uncertainty 428 429 @param contrast: contrast value 429 @return: v, dv430 @return: V, dV = self.get_volume_fraction_with_error(contrast), dV 430 431 """ 431 432 432 433 def get_surface_with_error(self, contrast, porod_const): 433 434 """ 434 Compute uncertainty of the surface value .435 Compute uncertainty of the surface value as well as thesurface value 435 436 this uncertainty is given as follow: 436 437
Note: See TracChangeset
for help on using the changeset viewer.