最后功能

This commit is contained in:
2026-06-16 12:57:08 +08:00 Unverified
parent 7767d52bb9
commit dc9ca11cec
6 changed files with 374 additions and 126 deletions
+19 -2
View File
@@ -205,6 +205,22 @@ namespace kcsj.Services
double residual = V[i, 0];
double adjustedHeightDiff = obs.HeightDiff + residual;
double adjustedHeightDiffError = double.NaN;
if (!double.IsNaN(sigma0))
{
double q = 0.0;
for (int row = 0; row < unknownCount; row++)
{
for (int column = 0; column < unknownCount; column++)
{
q += B[i, row] * Qxx[row, column] * B[i, column];
}
}
adjustedHeightDiffError = sigma0 * Math.Sqrt(Math.Abs(q));
}
result.Residuals.Add(residual);
result.AdjustedHeightDiffs.Add(adjustedHeightDiff);
@@ -218,7 +234,8 @@ namespace kcsj.Services
Distance = obs.Distance,
Weight = weights[i],
Residual = residual,
AdjustedHeightDiff = adjustedHeightDiff
AdjustedHeightDiff = adjustedHeightDiff,
AdjustedHeightDiffError = adjustedHeightDiffError
});
}
@@ -239,4 +256,4 @@ namespace kcsj.Services
return result;
}
}
}
}