|
@@ -3666,7 +3666,7 @@ func MarkerLineCalculate(markerLine data_manage.MarkersLine, dataList interface{
|
|
|
stdev := utils.CalculateStandardDeviation(faloatList)
|
|
|
stdev, _ = decimal.NewFromFloat(stdev).Round(4).Float64()
|
|
|
|
|
|
- value = fmt.Sprintf("%.2f", averge+stdev*float64(markerLine.CalculationValue))
|
|
|
+ value = fmt.Sprintf("%.2f", averge+stdev*markerLine.CalculationValue)
|
|
|
}
|
|
|
|
|
|
} else {
|
|
@@ -3688,7 +3688,7 @@ func MarkerLineCalculate(markerLine data_manage.MarkersLine, dataList interface{
|
|
|
stdev := utils.CalculateStandardDeviation(floatList)
|
|
|
stdev, _ = decimal.NewFromFloat(stdev).Round(4).Float64()
|
|
|
|
|
|
- value = fmt.Sprintf("%.2f", averge+stdev*float64(markerLine.CalculationValue))
|
|
|
+ value = fmt.Sprintf("%.2f", averge+stdev*markerLine.CalculationValue)
|
|
|
}
|
|
|
} else if markerLine.Calculation == 3 {
|
|
|
// 区间个数分位
|
|
@@ -3708,7 +3708,7 @@ func MarkerLineCalculate(markerLine data_manage.MarkersLine, dataList interface{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- markerLineValue = PercentileAlgorithm(float64(markerLine.CalculationValue), faloatList)
|
|
|
+ markerLineValue = PercentileAlgorithm(markerLine.CalculationValue, faloatList)
|
|
|
value = fmt.Sprintf("%.2f", markerLineValue)
|
|
|
}
|
|
|
|
|
@@ -3725,7 +3725,7 @@ func MarkerLineCalculate(markerLine data_manage.MarkersLine, dataList interface{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- markerLineValue = PercentileAlgorithm(float64(markerLine.CalculationValue), floatList)
|
|
|
+ markerLineValue = PercentileAlgorithm(markerLine.CalculationValue, floatList)
|
|
|
value = fmt.Sprintf("%.2f", markerLineValue)
|
|
|
}
|
|
|
}
|