Removed unnecessary outputs in method.
parent
eee62c38c4
commit
4bb978cede
|
@ -307,7 +307,7 @@ public class Spreadsheet {
|
|||
Arrays.fill(frequency,1);
|
||||
ArrayList<Double> relativeFrequency = new ArrayList<>();
|
||||
double mem = 0;
|
||||
System.out.println(cellNames);
|
||||
|
||||
for(int i = 0; i< cellNames.size(); i++) {
|
||||
for(int t = 0; t<cellNames.size(); t++){
|
||||
if((t!=i)&&(!get(cellNames.get(i)).isEmpty())&&(get(cellNames.get(i)).equals(get(cellNames.get(t))))){
|
||||
|
@ -318,11 +318,9 @@ public class Spreadsheet {
|
|||
}
|
||||
}
|
||||
//delete all duplicates
|
||||
System.out.println(cellNames);
|
||||
|
||||
for(int i = 0; i< cellNames.size(); i++)
|
||||
relativeFrequency.add(i,frequency[i]/copyCellNames.size());
|
||||
System.out.println(relativeFrequency);
|
||||
System.out.println(avg);
|
||||
|
||||
if(get(cellNames.get(0)).isEmpty())
|
||||
mem = ((0 - avg)*(0 - avg))
|
||||
|
|
Loading…
Reference in New Issue