浏览代码

曲线偏差功能修改

shilin 1 年之前
父节点
当前提交
8f83ee49ec

+ 1 - 6
realtime/generationXK-service/src/main/java/com/gyee/generation/util/realtimesource/math/LineUtil.java

@@ -51,12 +51,7 @@ public class LineUtil {
                 }else
                 {
                     double temp=coefficient[j] * Math.pow(point.getX(), (double)j);
-
-                    if(temp>0)
-                    {
-                        point.setY(point.getY()+temp);
-                    }
-
+                    point.setY(point.getY()+temp);
                 }
 
             }