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; + } + +}