Skip to content

Commit

Permalink
AUS-4285 Changed to use countMax.
Browse files Browse the repository at this point in the history
  • Loading branch information
jia020 committed Nov 21, 2024
1 parent de3c6e2 commit 763d1c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class TSGModJobProcessor extends IJobProcessor{
private String tsgScript;
private String dataPath;
private String wvLogname = "Reflectance";
private double countSumMax = 0.0;
private Integer countSumMax = 0;


/**
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/org/auscope/nvcl/server/vo/TSGScalarArrayVo.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,15 @@ public boolean query(String units, String logicalOp, double threshHold) {

return isHit;
}
public double queryMaxCountSum() {
double valueMax = 0.0;
public Integer queryMaxCountSum() {
Integer countMax = 0;
/* Now, iterate over the map's contents, sorted by key. */
for (TSGScalarVo spectralData : downSampledScalarArray) {
double value = spectralData.getValue();
if (value>valueMax){
valueMax = value;
Integer count = spectralData.getCount();
if (count>countMax){
countMax = count;
}
}
return valueMax;
return countMax;
}
}

0 comments on commit 763d1c4

Please sign in to comment.