1
0
Fork 0

Removed unnecessary outputs in method.

pull/1/head
selim 2023-12-27 06:06:45 +01:00
parent eee62c38c4
commit 4bb978cede
1 changed files with 2 additions and 4 deletions

View File

@ -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))