新增fittingType枚举类
This commit is contained in:
parent
26ec3e3f19
commit
fd04d6bc2d
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user