algorithms/k-means/algorithms.py
def update_distances(this):
        """
        Updates the dictionary of distances.
        :return: None
        """

        for p in this.data:
            this.distances[p] = [0 for i in range(this.k)]
            for i in range(this.k):
                this.distances[p][i] = this.distance(this.centers[i], p)

        Updates the dictionary of distances.
        :return: None
        
Updates the dictionary of distances.
Updates the dictionary of distances .
def update_distances(this):
        for p in this.data:
            this.distances[p] = [0 for i in range(this.k)]
            for i in range(this.k):
                this.distances[p][i] = this.distance(this.centers[i], p)
def update_distances ( this ) : for p in this . data : this . distances [ p ] = [ 0 for i in range ( this . k ) ] for i in range ( this . k ) : this . distances [ p ] [ i ] = this . distance ( this . centers [ i ] , p )
Updates the dictionary of distances.
Updates the dictionary of distances .
"""
        Updates the dictionary of distances.
        :return: None
        """
None
this