Compare commits

...

2 Commits

Author SHA1 Message Date
656c535208 Pythonfiles 2025-12-16 14:18:31 +01:00
5f23c68d84 Pythonfiles 2025-12-16 14:17:31 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
from Stochastisches_Modell import StochastischesModell from Stochastisches_Modell import StochastischesModell
def ausgleichung(A, dl, stoch_modell: StochastischesModell, P): def ausgleichung(A, dl, stoch_modell: StochastischesModell):
Q_ll, P = stoch_modell.berechne_Qll_P() #Kofaktormatrix und P-Matrix Q_ll, P = stoch_modell.berechne_Qll_P() #Kofaktormatrix und P-Matrix
N = A.T * P * A #Normalgleichungsmatrix N N = A.T * P * A #Normalgleichungsmatrix N
Q_xx = N.inv() #Kofaktormatrix der Unbekannten Qxx Q_xx = N.inv() #Kofaktormatrix der Unbekannten Qxx
n = A.T * P * dl #Absolutgliedvektor n n = A.T * P * dl #Absolutgliedvektor n

View File

@@ -18,7 +18,7 @@ class StochastischesModell:
unique_groups = sorted({int(g) for g in self.gruppe_beob}) #jede Beobachtungsgruppe wird genau einmal berücksichtigt unique_groups = sorted({int(g) for g in self.gruppe_beob}) #jede Beobachtungsgruppe wird genau einmal berücksichtigt
for g in unique_groups: for g in unique_groups:
if g not in self.sigma0_gruppe: #Fehlende Gruppen mit σ_0j^2 = 1.0 if g not in self.sigma0_gruppe: #Fehlende Gruppen mit σ_0j^2 = 1.0
self.sigma0_gruppe[g] = 1.0 self.sigma0_gruppe[g] = 1.0