<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, previous):
 """ Computes the metrics of this point Computes and updates the dt, vel and acc attributes. Args: previous (:obj:`Point`):
 Point before Returns: :obj:`Point`: Self """

        delta_t = self.time_difference(previous)
        delta_x = self.distance(previous)
        vel = 0
        delta_v = 0
        acc = 0
        if delta_t != 0:
            vel = delta_x/delta_t
            delta_v = vel - previous.vel
            acc = delta_v/delta_t

        self.dt = delta_t
        self.dx = delta_x
        self.acc = acc
        self.vel = vel
        return self