| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/scipy/odr/__pycache__/ |
Upload File : |
�
d�cW� � �X � d Z ddlZddlZddlmZ ddlmZ g d�Zej Z G d� de � � Z
G d� d e� � Z G d
� de� � Z
eZe
Z ej ee
� � dd�Zd
� Z G d� d� � Z G d� de� � Z G d� d� � Z G d� d� � Z G d� d� � ZdS )a
Python wrappers for Orthogonal Distance Regression (ODRPACK).
Notes
=====
* Array formats -- FORTRAN stores its arrays in memory column first, i.e., an
array element A(i, j, k) will be next to A(i+1, j, k). In C and, consequently,
NumPy, arrays are stored row first: A[i, j, k] is next to A[i, j, k+1]. For
efficiency and convenience, the input and output arrays of the fitting
function (and its Jacobians) are passed to FORTRAN without transposition.
Therefore, where the ODRPACK documentation says that the X array is of shape
(N, M), it will be passed to the Python function as an array of shape (M, N).
If M==1, the 1-D case, then nothing matters; if M>1, then your
Python functions will be dealing with arrays that are indexed in reverse of
the ODRPACK documentation. No real issue, but watch out for your indexing of
the Jacobians: the i,jth elements (@f_i/@x_j) evaluated at the nth
observation will be returned as jacd[j, i, n]. Except for the Jacobians, it
really is easier to deal with x[0] and x[1] than x[:,0] and x[:,1]. Of course,
you can always use the transpose() function from SciPy explicitly.
* Examples -- See the accompanying file test/test.py for examples of how to set
up fits of your own. Some are taken from the User's Guide; some are from
other sources.
* Models -- Some common models are instantiated in the accompanying module
models.py . Contributions are welcome.
Credits
=======
* Thanks to Arnold Moene and Gerard Vermeulen for fixing some killer bugs.
Robert Kern
robert.kern@gmail.com
� N)�warn)� __odrpack)�odr�
OdrWarning�OdrError�OdrStop�Data�RealData�Model�Output�ODR� odr_error�odr_stopc � � e Zd ZdZdS )r z�
Warning indicating that the data passed into
ODR will cause problems when passed into 'odr'
that the user should be aware of.
N��__name__�
__module__�__qualname__�__doc__� � �4/usr/lib/python3/dist-packages/scipy/odr/_odrpack.pyr r 3 � � � � � � �� �
�Dr r c � � e Zd ZdZdS )r z~
Exception indicating an error in fitting.
This is raised by `~scipy.odr.odr` if an error occurs during fitting.
Nr r r r r r <