|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.support.normalizing.batch; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.support.normalizing.BigDecimalScoreCalculator; |
|
|
|
import com.epmet.support.normalizing.Correlation; |
|
|
|
import com.epmet.support.normalizing.ScoreCalculator; |
|
|
@ -79,6 +80,7 @@ public class BatchScoreCalculator { |
|
|
|
}else { |
|
|
|
//如果不需要归一 则 直接value*权重
|
|
|
|
if (idx.isScore()) { |
|
|
|
vo.setSampleValue(new BigDecimal(vo.getSampleValue().toString()).compareTo(NumConstant.ZERO_DECIMAL) == NumConstant.ZERO ? ScoreConstants.MIN_SCORE : new BigDecimal(vo.getSampleValue().toString())); |
|
|
|
normalizeValue = getFinalSampleValue(vo.getSampleValue(), threshold); |
|
|
|
} else { |
|
|
|
normalizeValue = scoreCalculator.normalize(getFinalSampleValue(vo.getSampleValue(), threshold)); |
|
|
|