Skip to content

Commit

Permalink
improved PairedDifference
Browse files Browse the repository at this point in the history
  • Loading branch information
qddyy committed Nov 13, 2024
1 parent c902a01 commit 69cdd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/PairedDifference.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ PairedDifference <- R6Class(
} else score
} else abs(private$.data$x)

private$.statistic_func <- function(x, y) sum(abs_diff[x > y])
private$.statistic_func <- function(x, y) sum(abs_diff * (x > y))
},

.calculate_p = function() {
Expand Down

0 comments on commit 69cdd31

Please sign in to comment.