Skip to content

Commit df97f4c

Browse files
authored
Update Correlation.java
1 parent 48f837c commit df97f4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/thealgorithms/maths/Correlation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ private Correlation() {
2222
*/
2323
public static double correlation(double[] x, double[] y, int n) {
2424
double exy = 0;
25-
double ex = 0;
26-
double exx = 0;
27-
double ey = 0;
28-
double eyy = 0;
25+
double ex = 0;
26+
double exx = 0;
27+
double ey = 0;
28+
double eyy = 0;
2929
for (int i = 0; i < n; i++) {
3030
exy += x[i] * y[i];
3131
ex += x[i];

0 commit comments

Comments
 (0)