XtalOptimizer: Remove Cauchy leftovers

This commit is contained in:
2026-01-27 15:32:44 +01:00
parent 54fa2aa45b
commit a1f46d29f2

View File

@@ -415,10 +415,6 @@ bool XtalOptimizerInternal(XtalOptimizerData &data,
const float tolerance_sq = tolerance * tolerance;
// Choose robust loss function
// Cauchy is excellent for crystallography - handles both small errors and gross outliers
const double loss_scale = tolerance / 3; // Tune based on typical residual magnitude
// Add residuals for each point
for (const auto &pt: spots) {
if (!data.index_ice_rings && pt.ice_ring)