Skip to content

Commit f1e83b0

Browse files
committed
removed unused variable
#131
1 parent bb90869 commit f1e83b0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/org/cicirello/math/stats/Statistics.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2020 Vincent A. Cicirello, <https://www.cicirello.org/>.
2+
* Copyright 2018-2021 Vincent A. Cicirello, <https://www.cicirello.org/>.
33
*
44
* This file is part of JavaPermutationTools (https://jpt.cicirello.org/).
55
*
@@ -26,7 +26,7 @@
2626
* Utility class of basic statistics.
2727
*
2828
* @author <a href=https://www.cicirello.org/ target=_top>Vincent A. Cicirello</a>, <a href=https://www.cicirello.org/ target=_top>https://www.cicirello.org/</a>
29-
* @version 09-18-2020
29+
* @version 5.13.2021
3030
*/
3131
public final class Statistics {
3232

@@ -39,11 +39,9 @@ private Statistics() {}
3939
* @return the mean of the data.
4040
*/
4141
public static double mean(int[] data) {
42-
double mean = 0;
4342
int sum = 0;
4443
for (int e : data) sum = sum + e;
45-
mean = 1.0 * sum / data.length;
46-
return mean;
44+
return 1.0 * sum / data.length;
4745
}
4846

4947
/**

0 commit comments

Comments
 (0)