This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.odr.multilinear¶
-
scipy.odr.
multilinear
= <scipy.odr.models._MultilinearModel object>[source]¶ Arbitrary-dimensional linear model
This model is defined by
Examples
We can calculate orthogonal distance regression with an arbitrary dimensional linear model:
>>> from scipy import odr >>> x = np.linspace(0.0, 5.0) >>> y = 10.0 + 5.0 * x >>> data = odr.Data(x, y) >>> odr_obj = odr.ODR(data, odr.multilinear) >>> output = odr_obj.run() >>> print(output.beta) [10. 5.]