Skip to main content
. 2020 Jul 3;25(13):3037. doi: 10.3390/molecules25133037
Input: a set of solvents, X = {x1, ..., xn}
Output: a set of clusters, Y = {y1, ..., yn}
Begin
  Initialize Y = {y1, ..., yn} randomly
  Repeat select xX randomly
    Find y* such that d(x,y*) = min{d(x,y)| y ∈ Y}
    For all y ∈ N(y*) do
      y = y + γ (x− y)
    Reduce learning rate γ
  Until termination condition is true
End