|
@ -1,6 +1,7 @@ |
|
|
package com.epmet.support.normalizing; |
|
|
package com.epmet.support.normalizing; |
|
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Integer的分值计算 |
|
|
* Integer的分值计算 |
|
@ -26,6 +27,15 @@ public class IntegerScoreCalculator extends ScoreCalculator { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IntegerScoreCalculator(List<Integer> sourceList, BigDecimal minScore, BigDecimal maxScore, Correlation correlation) { |
|
|
|
|
|
this.sourceArrary = sourceList.toArray(); |
|
|
|
|
|
this.minScore = minScore; |
|
|
|
|
|
this.maxScore = maxScore; |
|
|
|
|
|
this.correlation = correlation; |
|
|
|
|
|
this.prepare(); |
|
|
|
|
|
System.out.println("最小值:"+minScore+";最大值:"+maxScore); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public BigDecimal getMaxFromSourceArray() { |
|
|
public BigDecimal getMaxFromSourceArray() { |
|
|
Integer[] intSourceArrary = (Integer[]) this.sourceArrary; |
|
|
Integer[] intSourceArrary = (Integer[]) this.sourceArrary; |
|
|