新增insertPeaks方法

新增calFitPara方法
This commit is contained in:
qiaoqinzheng 2023-08-28 15:12:23 +08:00
parent 81a0ccf569
commit fc757f9f3e
3 changed files with 104 additions and 0 deletions

View File

@ -0,0 +1,62 @@
package org.jeecg.modules.entity.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class StructInsertInput implements Serializable {
//-----------------input:------------------
List<Double> peakCentroid;
List<Double> fwhmc;
List<Double> tail;
List<Double> tailAlpha;
List<Double> upperTail;
List<Double> upperTailAlpha;
List<Double> area;
List<Double> stepRatio;
List<Double> usedEnerPara;
List<Double> usedResoPara;
List<Double> usedEffiPara;
long num_g_channel;
long begin_channel;
List<Double> XCtrl;
List<Double> YCtrl;
List<Double> YSlope;
int rg_low;
int rg_high;
List<Double> para_tail;
List<Double> para_tailAlpha;
List<Double> para_tailRight;
List<Double> para_tailRightAlpha;
List<Double> para_stepRatio;
int curChan;
List<Double> vCount;
}

View File

@ -0,0 +1,34 @@
package org.jeecg.modules.entity.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class StructInsertOutput implements Serializable {
//-----------------output:------------------
List<Double> energy;
List<Double> sensitivity;
List<Double> fwhm;
List<Double> efficiency;
List<Double> BWWidthChan;
List<Double> recoilBetaChan;
List<Double> recoilDeltaChan;
List<Double> vIdx;
List<Double> vLeft;
List<Double> vRight;
List<Double> vCentroid;
}

View File

@ -1,6 +1,8 @@
package org.jeecg.modules.native_jni;
import org.jeecg.modules.entity.vo.PeakInfo;
import org.jeecg.modules.entity.vo.StructInsertInput;
import org.jeecg.modules.entity.vo.StructInsertOutput;
import org.jeecg.modules.native_jni.struct.CalValuesOut;
import java.util.List;
@ -13,6 +15,12 @@ public class CalValuesHandler {
public static native CalValuesOut calDerivEval(List<Double> channel, List<Double> para);
public static native double calDerivaOut(double Chan, List<Double> p);
public static native List<Double> interp1(PeakInfo peak, List<Double> t_base, List<Double> regChan);
public static native StructInsertOutput insertPeaks(StructInsertInput structInsertInput);
public static native List<Double> calFitPara(String type, int funcId, List<Double> x, List<Double> y, List<Double> err);
}