docs: def _get_algorithm_and_params(self, algorithm_name, algorithm_params):
          """
          Get the specific algorithm and merge the algorithm params.
          :param str algorithm: name of the algorithm to use.
          :param dict algorithm_params: additional params for the specific algorithm.
          """
          algorithm_name = algorithm_name or CORRELATOR_ALGORITHM
          try:
              self.algorithm = correlator_algorithms[algorithm_name]
          except KeyError:
              raise exceptions.AlgorithmNotFound('luminol.Correlator: ' + str(algorithm_name) + ' not found.')
          # Merge parameters.
          if algorithm_params:
              if not isinstance(algorithm_params, dict):
                  raise exceptions.InvalidDataFormat('luminol.Correlator: algorithm_params passed is not a dictionary.')
              else:
                  # self.algorithm_params = dict(algorithm_params.items() + self.algorithm_params.items())
                  self.algorithm_params = self.algorithm_params.copy()
                  self.algorithm_params.update(algorithm_params)