This is documentation for an old release of SciPy (version 0.10.1). Read this page in the documentation of the latest stable release (version 1.15.1).
The RealData class stores the weightings as actual standard deviations and/or covariances.
The weights needed for ODRPACK are generated on-the-fly with __getattr__ trickery.
sx and sy are standard deviations of x and y and are converted to weights by dividing 1.0 by their squares.
E.g. wd = 1./numpy.power(sx, 2)
covx and covy are arrays of covariance matrices and are converted to weights by performing a matrix inversion on each observation’s covariance matrix.
- E.g. we[i] = numpy.linalg.inv(covy[i]) # i in range(len(covy))
- # if covy.shape == (n,q,q)
These arguments follow the same structured argument conventions as wd and we only restricted by their natures: sx and sy can’t be rank-3, but covx and covy can be.
Only set either sx or covx (not both). Setting both will raise an exception. Same with sy and covy.
Methods
set_meta(**kwds) | Update the metadata dictionary with the keywords and data provided by keywords. |