class_docstr: !
  @brief Genetic algorithm observer that is used to collect information about clustering process on each iteration.
class_docstr_tok: ["!","@","brief","Genetic","algorithm","observer","that","is","used","to","collect","information","about","clustering","process","on","each","iteration","."]
docstr: !
  @brief Returns amount of iterations that genetic algorithm was observed.
docstr_tok: ["!","@","brief","Returns","amount","of","iterations","that","genetic","algorithm","was","observed","."]
code: def __len__(self):
      """!
      @brief Returns amount of iterations that genetic algorithm was observed.
  
      """
      global_length = len(self._global_best_result["chromosome"])
      local_length = len(self._best_population_result["chromosome"])
      average_length = len(self._mean_ff_result)
  
      return max(global_length, local_length, average_length)
  
imports: import numpy
  import matplotlib.pyplot
  import matplotlib.animation
  from pyclustering.cluster import cluster_visualizer
  from pyclustering.cluster.ga_maths import ga_math
label_desc: Use image node_id 2 for calling the ga_observer obj's underlying member method code with example usage: obj.__len__() and returns: max