code: def compute_metrics(self, previous):
          
          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
docs: 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