Changeset 896abb3 in sasview for pr_inversion/__init__.py
- Timestamp:
- May 23, 2008 2:31:50 PM (16 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:
- ffca8f2
- Parents:
- a1718df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pr_inversion/__init__.py
r9a11937 r896abb3 15 15 # 16 16 # [1] P.B. Moore, J.Appl. Cryst (1980) 13, 168-175. 17 # 17 18 # [2] O. Glatter, J.Appl. Cryst (1977) 10, 415-421. 19 # 18 20 # [3] D.I. Svergun, J.Appl. Cryst (1991) 24, 485-492. 21 # 19 22 # [4] D.I. Svergun, J.Appl. Cryst (1992) 25, 495-503. 23 # 20 24 # [5] S. Hansen and J. Skov Pedersen, J.Appl. Cryst (1991) 24, 541-548. 21 25 # … … 41 45 # 42 46 # 47 # \subsection Tutorial 48 # To create an inversion object: 49 # \verbatim 50 #from sans.pr.invertor import Invertor 51 # invertor = Invertor() 52 # \endverbatim 53 # 54 # To set the maximum distance between any two points: 55 # \verbatim 56 # invertor.d_max = 160.0 57 # \endverbatim 58 # 59 # To set the regularization constant: 60 # \verbatim 61 # invertor.alpha = 0.0007 62 # \endverbatim 63 # 64 # To set the q, I(q) and error on I(q): 65 # \verbatim 66 # invertor.x = q_vector 67 # invertor.y = Iq_vector 68 # invertor.err = dIq_vector 69 # \endverbatim 70 # 71 # To perform the inversion. In this example, we choose 72 # a P(r) expension wit 10 base functions. 73 # \verbatim 74 # c_out, c_cov = invertor.invert(10) 75 # \endverbatim 76 # The c_out and c_cov are the set of coefficients and the covariance 77 # matrix for those coefficients, respectively. 78 # 43 79 # Examples are available as unit tests under sans.pr_inversion.test. 44 80 #
Note: See TracChangeset
for help on using the changeset viewer.