From fd04d6bc2d27a884ec42abae5b6c082ebfc2c470 Mon Sep 17 00:00:00 2001 From: qiaoqinzheng Date: Wed, 30 Aug 2023 19:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EfittingType=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/modules/base/enums/FittingType.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/enums/FittingType.java diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/enums/FittingType.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/enums/FittingType.java new file mode 100644 index 00000000..9f7768df --- /dev/null +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/enums/FittingType.java @@ -0,0 +1,27 @@ +package org.jeecg.modules.base.enums; + +public enum FittingType { + + DEFAULT(0, "_2PloynimialFitEquation :y = int(_fit_para[0]+_fit_para[1]*_watch_x[n..]+_fit_para[2]*_watch_x[n..]*_watch_x[n..]+0.5)"), + LINER(1, "LinearFitEquation :y = int(_fit_para[0]*_watch_x[n..]+_fit_para[1])"), + POLY2(2, "_2PloynimialFitEquation :y = int(_fit_para[0]+_fit_para[1]*_watch_x[n..]+_fit_para[2]*_watch_x[n..]*_watch_x[n..]+0.5)"), + POLY3(3, "_3PloynimialFitEquation"), GAUSS(4, "GaussFitEquation"); + + private Integer code; + + private String description; + + FittingType(Integer code, String description){ + this.code = code; + this.description = description; + } + + public Integer getCode() { + return code; + } + + public String getDescription() { + return description; + } + +}