def compute_metrics(self):
        """ Computes metrics for each point

        Returns:
            :obj:`Segment`: self
        """
        for prev, point in pairwise(self.points):
            point.compute_metrics(prev)
        return self
def compute_metrics ( self ) : for prev , point in pairwise ( self . points ) : point . compute_metrics ( prev ) return self
Computes metrics for each point

        Returns:
            :obj:`Segment`: self