code: def calcLorenzDistance(self):
          '''
          Returns the sum of squared differences between simulated and target Lorenz points.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          dist : float
              Sum of squared distances between simulated and target Lorenz points (sqrt)
          '''
          LorenzSim = np.mean(np.array(self.Lorenz_hist)[self.ignore_periods:,:],axis=0)
          dist = np.sqrt(np.sum((100*(LorenzSim - self.LorenzTarget))**2))
          self.LorenzDistance = dist
          return disf calcLorenzDistance(self):
          '''
          Returns the sum of squared differences between simulated and target Lorenz points.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          dist : float
              Sum of squared distances between simulated and target Lorenz points (sqrt)
          '''
          LorenzSim = np.mean(np.array(self.Lorenz_hist)[self.ignore_periods:,:],axis=0)
          dist = np.sqrt(np.sum((100*(LorenzSim - self.LorenzTarget))**2))
          self.LorenzDistance = dist
          return dist
docs: Returns the sum of squared differences between simulated and target Lorenz points.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          dist : float
              Sum of squared distances between simulated and target Lorenz points (sqrt)