Pythonfiles

This commit is contained in:
2025-12-28 17:47:23 +01:00
parent e21d39844b
commit cd0d60093e
4 changed files with 239 additions and 107 deletions

View File

@@ -49,11 +49,18 @@ class StochastischesModell:
return Q_ll
def berechne_P(Q_ll):
def berechne_P(Q_ll: sp.Matrix) -> sp.Matrix:
P = Q_ll.inv()
return P
def berechne_Q_xx(N: sp.Matrix) -> sp.Matrix:
if N.rows != N.cols:
raise ValueError("N muss eine quadratische Matrix sein")
Q_xx = N.inv()
return Q_xx
def berechne_Qvv(self, A: sp.Matrix, P: sp.Matrix, Q_xx: sp.Matrix) -> sp.Matrix:
Q_vv = P.inv() - A * Q_xx * A.T
return Q_vv #Kofaktormatrix der Beobachtungsresiduen