Pythonfiles

This commit is contained in:
2025-12-18 16:41:13 +01:00
parent 90930d3619
commit e21d39844b
3 changed files with 150 additions and 5 deletions

View File

@@ -46,13 +46,14 @@ class StochastischesModell:
sigma0_sq = self.sigma0_gruppe[g] #Den Varianzfaktor der Gruppe holen
q_ii = sigma_i**2 #σ² berechnen
Q_ll[i, i] = q_ii #Diagonale
P[i, i] = 1 / (sigma0_sq * q_ii) #durch VKS nicht mehr P=Qll^-1
return Q_ll
def berechne_P(Q_ll):
P = Q_ll.inv()
return P
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