Skip to content

Commit 581cb80

Browse files
oxinaboxalyst
andauthored
Apply suggestions from code review
Co-Authored-By: Alexey Stukalov <[email protected]>
1 parent df15fb3 commit 581cb80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dbscan.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function _dbs_region_query(D::AbstractMatrix{T}, p::Int, eps::T) where T<:Real
108108
return nbs::Vector{Int}
109109
end
110110

111-
function _dbs_expand_cluster!(D::AbstractMatrix{T}, # distance matrix
111+
function _dbs_expand_cluster!(D::AbstractMatrix{T}, # distance matrix
112112
k::Int, # the index of current cluster
113113
p::Int, # the index of seeding point
114114
nbs::Vector{Int}, # eps-neighborhood of p

src/kmedoids.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ end
110110
#### core algorithm
111111

112112
function _kmedoids!(medoids::Vector{Int}, # initialized medoids
113-
dist::AbstractMatrix{T}, # distance matrix
113+
dist::AbstractMatrix{T}, # distance matrix
114114
maxiter::Int, # maximum number of iterations
115115
tol::Real, # tolerable change of objective
116116
displevel::Int) where T<:Real # level of display
@@ -182,7 +182,7 @@ end
182182

183183

184184
# update assignments and related quantities
185-
function _kmed_update_assignments!(dist::AbstractMatrix{T}, # in: (n, n)
185+
function _kmed_update_assignments!(dist::AbstractMatrix{T}, # in: (n, n)
186186
medoids::AbstractVector{Int}, # in: (k,)
187187
assignments::Vector{Int}, # out: (n,)
188188
groups::Vector{Vector{Int}}, # out: (k,)

0 commit comments

Comments
 (0)