Skip to content

Commit 507601a

Browse files
authored
Merge pull request #70 from osorensen/copilot/fix-cran-incoming-error
Fix CRAN incoming errors: Remove duplicate Maintainer field and fix Cayley distance bug
2 parents 4f5cab1 + 923c6b2 commit 507601a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
parameter_trace
66
*.Rcheck
77
*.tar.gz
8-
README.html
8+
README.html
9+
_codeql_detected_source_root

DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Authors@R: c(person("Oystein", "Sorensen",
66
email = "oystein.sorensen.1985@gmail.com",
77
role = c("aut", "cre"),
88
comment = c(ORCID = "0000-0003-0724-3542")))
9-
Maintainer: Oystein Sorensen <oystein.sorensen.1985@gmail.com>
109
Description: Provides nested sequential Monte Carlo algorithms for performing
1110
sequential inference in the Bayesian Mallows model, which is a widely used
1211
probability model for rank and preference data. The package implements the

src/distances.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ unsigned int CayleyDistance::d(const uvec& r1, const uvec& r2) {
2727
if(tmp2(i) != r2(i)) {
2828
distance += 1;
2929
unsigned int tmp1 = tmp2(i);
30-
tmp2(i) = r2(i);
3130
uvec inds = find(tmp2 == r2(i));
31+
tmp2(i) = r2(i);
3232
tmp2.elem(inds).fill(tmp1);
3333
}
3434
}

0 commit comments

Comments
 (0)