Anonymous user
Averages/Simple moving average: Difference between revisions
→{{header|Java}}: found more repetition to kill
(→{{header|Java}}: DIE, REPETITION!) |
(→{{header|Java}}: found more repetition to kill) |
||
Line 273:
public static void main(String[] args) {
double[] testData = {1,2,3,4,5,5,4,3,2,1};
int[] windowSizes = {3,5};
System.out.println(ma.getAvg());▼
}
System.out.println();
▲ ma = new MovingAverage(5);
▲ System.out.println(ma.getAvg());
}
}
|