fertig
This commit is contained in:
18
Proben.py
18
Proben.py
@@ -1,6 +1,6 @@
|
||||
import numpy as np
|
||||
|
||||
def atpv_probe(A, P, v, tol=1e-7):
|
||||
def atpv_probe(A: np.ndarray, P: np.ndarray, v: np.ndarray, tol: float = 1e-7) -> None:
|
||||
"""
|
||||
Führt die ATPv-Probe zur Kontrolle der Lösung des Normalgleichungssystems durch.
|
||||
|
||||
@@ -8,11 +8,11 @@ def atpv_probe(A, P, v, tol=1e-7):
|
||||
Die Prüfung erfolgt unter Verwendung einer vorgegebenen Toleranz.
|
||||
|
||||
:param A: Jacobi-Matrix (A-Matrix).
|
||||
:type A: np.asarray
|
||||
:type A: np.ndarray
|
||||
:param P: Gewichtsmatrix der Beobachtungen.
|
||||
:type P: np.asarray
|
||||
:type P: np.ndarray
|
||||
:param v: Residuenvektor der Beobachtungen.
|
||||
:type v: np.asarray
|
||||
:type v: np.ndarray
|
||||
:param tol: Absolute Toleranz für den Vergleich mit Null.
|
||||
:type tol: float
|
||||
:return: None
|
||||
@@ -30,7 +30,7 @@ def atpv_probe(A, P, v, tol=1e-7):
|
||||
print("❌ ATPv-Probe nicht erfolgreich. Fehler bei der Lösung des Normalgleichungssystems")
|
||||
|
||||
|
||||
def hauptprobe(A, x, l, v, tol=1e-7):
|
||||
def hauptprobe(A: np.ndarray, x: np.ndarray, l: np.ndarray, v: np.ndarray, tol: float = 1e-7) -> None:
|
||||
"""
|
||||
Führt die Hauptprobe zur Überprüfung der berechneten Residuen durch.
|
||||
|
||||
@@ -40,13 +40,13 @@ def hauptprobe(A, x, l, v, tol=1e-7):
|
||||
innerhalb der Toleranz überein, gilt die Ausgleichung als konsistent.
|
||||
|
||||
:param A: Jacobi-Matrix (A-Matrix).
|
||||
:type A: np.asarray
|
||||
:type A: np.ndarray
|
||||
:param x: Lösungsvektor der Unbekannten.
|
||||
:type x: np.asarray
|
||||
:type x: np.ndarray
|
||||
:param l: Beobachtungsvektor.
|
||||
:type l: np.asarray
|
||||
:type l: np.ndarray
|
||||
:param v: Residuenvektor aus der Ausgleichung.
|
||||
:type v: np.asarray
|
||||
:type v: np.ndarray
|
||||
:param tol: Absolute Toleranz für den Vergleich der Residuen.
|
||||
:type tol: float
|
||||
:return: None
|
||||
|
||||
Reference in New Issue
Block a user