微调
This commit is contained in:
@@ -1125,13 +1125,12 @@ public class DetectionServiceImpl {
|
|||||||
|
|
||||||
public List<Double> getDoubles(List<Double> t) {
|
public List<Double> getDoubles(List<Double> t) {
|
||||||
if (CollUtil.isNotEmpty(t)) {
|
if (CollUtil.isNotEmpty(t)) {
|
||||||
if (t == null || t.size() < 2) {
|
if (t.size() > 2) {
|
||||||
return t;
|
Double max = Collections.max(t);
|
||||||
|
Double min = Collections.min(t);
|
||||||
|
t.remove(max);
|
||||||
|
t.remove(min);
|
||||||
}
|
}
|
||||||
Double max = Collections.max(t);
|
|
||||||
Double min = Collections.min(t);
|
|
||||||
t.remove(max);
|
|
||||||
t.remove(min);
|
|
||||||
}
|
}
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user