Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neighbor spelling (assuming we're sticking to American spelling!) #86

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions src/polychord/clustering.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module KNN_clustering
!! Points belong to the same cluster if they are in either of each others k
!! nearest neighbor sets.
!!
!! The algorithm computes the k nearest neihbor sets from the similarity
!! The algorithm computes the k nearest neighbor sets from the similarity
!! matrix, and then tests
recursive function NN_clustering(similarity_matrix,num_clusters) result(cluster_list)
use utils_module, only: relabel
Expand Down Expand Up @@ -113,7 +113,7 @@ function do_clustering_k(knn) result(c)

! If they're not in the same cluster already...
if(c(i)/=c(j)) then
! ... check to see if they are within each others k nearest neihbors...
! ... check to see if they are within each others k nearest neighbors...
if( neighbors( knn(:,i),knn(:,j) ) ) then

! If they are then relabel cluster_i and cluster_j to the smaller of the two
Expand Down