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