Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
parameter_trace
*.Rcheck
*.tar.gz
README.html
README.html
_codeql_detected_source_root
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Authors@R: c(person("Oystein", "Sorensen",
email = "oystein.sorensen.1985@gmail.com",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-0724-3542")))
Maintainer: Oystein Sorensen <oystein.sorensen.1985@gmail.com>
Description: Provides nested sequential Monte Carlo algorithms for performing
sequential inference in the Bayesian Mallows model, which is a widely used
probability model for rank and preference data. The package implements the
Expand Down
2 changes: 1 addition & 1 deletion src/distances.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ unsigned int CayleyDistance::d(const uvec& r1, const uvec& r2) {
if(tmp2(i) != r2(i)) {
distance += 1;
unsigned int tmp1 = tmp2(i);
tmp2(i) = r2(i);
uvec inds = find(tmp2 == r2(i));
tmp2(i) = r2(i);
tmp2.elem(inds).fill(tmp1);
}
}
Expand Down