|
@@ -198,7 +198,8 @@ func fillResidualChartInfo(req residual_analysis_model.ResidualAnalysisReq, edbI
|
|
|
totalQuadraticSum += math.Pow(indexData.Value-averageValueA, 2)
|
|
|
|
|
|
// 补全残差值
|
|
|
- indexData.Value = indexData.Value - valueB
|
|
|
+
|
|
|
+ indexData.Value = math.Round((indexData.Value-valueB)*10000) / 10000
|
|
|
|
|
|
// 残差平方和
|
|
|
residualQuadraticSum += math.Pow(indexData.Value, 2)
|