Pythonfiles

This commit is contained in:
2025-12-16 14:17:31 +01:00
parent b4c1c0a5c8
commit 5f23c68d84
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
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

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