Skip to content

Commit

Permalink
Add init to kmeans
Browse files Browse the repository at this point in the history
  • Loading branch information
LuEdRaMo committed Jan 3, 2024
1 parent af451b6 commit 0c10530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orbit_determination/outlier_rejection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function outlier_rejection(radec::Vector{RadecMPC{T}}, sol::NEOSolution{T, T},
points[2, i] = N_outliers[i]
end
# K-means clustering
cluster = kmeans(points, 2)
cluster = kmeans(points, 2; init = [1, max_drop + 1])
# Index of smallest cluster
i_0 = cluster.assignments[1]
# Find last fit of smallest cluster
Expand Down

0 comments on commit 0c10530

Please sign in to comment.