Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst authored Oct 29, 2023
1 parent 23a2216 commit a2a6e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clustering_quality.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ end
# shared between calinski_harabasz and xie_beni (hard version)
_inner_inertia(metric::SemiMetric, data::AbstractMatrix, centers::AbstractMatrix,
assignments::AbstractVector{<:Integer}) =
sum(metric(view(data, :, i), view(center, :, clu)) for (i, clu) in enumerate(assignments))
sum(metric(view(data, :, i), view(centers, :, clu)) for (i, clu) in enumerate(assignments))

# shared between fuzzy clustering calinski_harabasz and xie_beni (fuzzy version)
function _inner_inertia(metric::SemiMetric, data::AbstractMatrix, centers::AbstractMatrix,
Expand Down

0 comments on commit a2a6e80

Please sign in to comment.