|
|
@@ -90,7 +90,7 @@ public class NewDataFittingService {
|
|
|
* @param
|
|
|
* @return
|
|
|
*/
|
|
|
- public ProEconPowerFittingAnalySis newDataFitting(String station,String wtId,Long st,Long et,Integer interval,Boolean isbw,Boolean isfbw,Boolean isfhl,Boolean istj,Boolean isglpc,double maxp,double maxs,double mins,double minp,Integer mode,Integer dimension) {
|
|
|
+ public ProEconPowerFittingAnalySis newDataFitting(String station,String wtId,Long st,Long et,Integer interval,Boolean isbw,Boolean isfbw,Boolean isfhl,Boolean istj,Boolean isglpc,Integer xd,double maxp,double maxs,double mins,double minp,Integer mode,Integer dimension) {
|
|
|
prepareMap = new HashMap<>();
|
|
|
processMap = new HashMap<>();
|
|
|
fittingMap = new HashMap<>();
|
|
|
@@ -107,14 +107,17 @@ public class NewDataFittingService {
|
|
|
List<String> points = config.getPoints();
|
|
|
String replacement = wtt.get(0).getProjectId().equals("NX_FGS_HAF01_EG") ? "JKZT" : "DI1485";
|
|
|
|
|
|
+ if (wtt.get(0).getProjectId().equals("NX_FGS_HAF01_EG")){
|
|
|
+ points.set(10,"DI275");//本来应该是限功测点,一期已经有MXZT,随便找了个
|
|
|
+ }
|
|
|
for (int i = 0; i < points.size(); i++) {
|
|
|
if (points.get(i).equals("MXZT")) {
|
|
|
points.set(i, replacement);
|
|
|
}
|
|
|
}
|
|
|
// Map<String, List<ProBasicEquipmentPoint>> collect = CacheContext.pointNewMap.get(wt).stream().collect(Collectors.groupingBy(w -> w.getUniformCode()));
|
|
|
- Map<String, List<ProBasicEquipmentPoint>> collect = CacheContext.pointNewMap
|
|
|
- .get(wt).stream().collect(Collectors.groupingBy(w -> w.getUniformCode()));
|
|
|
+// Map<String, List<ProBasicEquipmentPoint>> collect = CacheContext.pointNewMap
|
|
|
+// .get(wt).stream().collect(Collectors.groupingBy(w -> w.getUniformCode()));
|
|
|
Map<String, ProBasicEquipmentPoint> equipmentPointMap = wtpAimap.get(wt);
|
|
|
|
|
|
Map<String, List<ProBasicEquipmentPoint>> collect1 = points.stream()
|
|
|
@@ -225,8 +228,10 @@ public class NewDataFittingService {
|
|
|
/** 数据预处理 **/
|
|
|
Boolean qfh = true;
|
|
|
Integer qfhdj = 2;
|
|
|
+ xd =1;
|
|
|
+ String eqmodelId = CacheContext.wtmap.get(obj.getWindturbineId()).getModelId();
|
|
|
// List<PowerPointData> data = PowerProcessALG.dataProcess(eis, modelPowerMap, maxs, mins, maxp, minp, isfbw, isfhl, isbw, istj, isglpc, qfh, qfhdj);
|
|
|
- List<PowerPointData> data = PowerProcessALG.dataProcess11(eis, modelPowerMap, maxs, mins, maxp, minp, isfbw, isfhl, isbw, istj, isglpc, qfh, qfhdj);
|
|
|
+ List<PowerPointData> data = PowerProcessALG.dataProcess11(eis, modelPowerMap, maxs, mins, maxp, minp, isfbw, isfhl, isbw, istj, isglpc, qfh, qfhdj,xd,eqmodelId);
|
|
|
/** 静风频率 **/
|
|
|
List<Double> ls = WindDirectionALG.frequency(data.stream().map(PowerPointData::getSpeed).collect(Collectors.toList()), 3);
|
|
|
double frequency = ls.get(0);
|