Changeset ac7be54 in sasview for src/sas/data_util/uncertainty.py
- Timestamp:
- May 8, 2015 2:27:08 PM (10 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:
- 5e880fe1
- Parents:
- c22c5e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/data_util/uncertainty.py
r79492222 rac7be54 1 """ 2 3 Uncertainty propagation class, and log() and exp() functions. 1 r""" 2 Uncertainty propagation class for arithmetic, log and exp. 4 3 5 4 Based on scalars or numpy vectors, this class allows you to store and 6 5 manipulate values+uncertainties, with propagation of gaussian error for 7 addition, subtraction, multiplication, division, power, exp () and log().6 addition, subtraction, multiplication, division, power, exp and log. 8 7 9 8 Storage properties are determined by the numbers used to set the value … … 11 10 for inplace operations since numpy does not do automatic type conversion. 12 11 Normal operations can use mixed integer and floating point. In place 13 operations (a *= b, etc.)create at most one extra copy for each operation.14 c = a*b by contrastuses four intermediate vectors, so shouldn't be used12 operations such as *a \*= b* create at most one extra copy for each operation. 13 By contrast, *c = a\*b* uses four intermediate vectors, so shouldn't be used 15 14 for huge arrays. 16 15 """
Note: See TracChangeset
for help on using the changeset viewer.