<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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