tools/perf/experimental/story_clustering/cluster_stories.py
def GetDistanceFrom(self, other_cluster, distance_matrix):
    """Calculates the distance of two clusters.

    The maximum distance between any story of first cluster to any story of
    the second cluster is used as the distance between clusters._members

    Args:
      other_cluster: Cluster object to calculate distance from.
      distance_matrix: A dataframe containing the distances between any
      two stories.

    Returns:
      A float number representing the distacne between two clusters.
    """
    matrix_slice = distance_matrix.loc[self.members, other_cluster.members]
    return matrix_slice.max().max()
Calculates the distance of two clusters.

    The maximum distance between any story of first cluster to any story of
    the second cluster is used as the distance between clusters._members

    Args:
      other_cluster: Cluster object to calculate distance from.
      distance_matrix: A dataframe containing the distances between any
      two stories.

    Returns:
      A float number representing the distacne between two clusters.
    
Calculates the distance of two clusters.
The maximum distance between any story of first cluster to any story of
the second cluster is used as the distance between clusters._members

Cluster object to calculate distance from.
distance_matrix: A dataframe containing the distances between any
two stories.

A float number representing the distacne between two clusters.
Calculates the distance of two clusters . The maximum distance between any story of first cluster to any story of the second cluster is used as the distance between clusters . _members Cluster object to calculate distance from . distance_matrix : A dataframe containing the distances between any two stories . A float number representing the distacne between two clusters .
def GetDistanceFrom(self, other_cluster, distance_matrix):
    matrix_slice = distance_matrix.loc[self.members, other_cluster.members]
    return matrix_slice.max().max()
def GetDistanceFrom ( self , other_cluster , distance_matrix ) : matrix_slice = distance_matrix . loc [ self . members , other_cluster . members ] return matrix_slice . max ( ) . max ( )
Calculates the distance of two clusters.
Calculates the distance of two clusters .
"""Calculates the distance of two clusters.

    The maximum distance between any story of first cluster to any story of
    the second cluster is used as the distance between clusters._members

    Args:
      other_cluster: Cluster object to calculate distance from.
      distance_matrix: A dataframe containing the distances between any
      two stories.

    Returns:
      A float number representing the distacne between two clusters.
    """
self
other_cluster
distance_matrix