.. _f-voisinageevolution: module ``special.voisinage_evolution`` ====================================== .. inheritance-diagram:: ensae_teaching_cs.special.voisinage_evolution Short summary +++++++++++++ module ``ensae_teaching_cs.special.voisinage_evolution`` Implémente une simulation d'évolution des catégories de population selon un modèle de Schelling. :githublink:`%|py|0` Classes +++++++ +--------------------------------------------------------------------------------+--------------------------------------------------------------+ | class | truncated documentation | +================================================================================+==============================================================+ | :class:`Ville ` | Définit une ville qui va évoluer par la suite. | +--------------------------------------------------------------------------------+--------------------------------------------------------------+ | :class:`VilleImage ` | Définit une ville à partir d'une image (donc non aléatoire). | +--------------------------------------------------------------------------------+--------------------------------------------------------------+ Functions +++++++++ +---------------------------------------------------------------------------------------------+-------------------------------------------------------+ | function | truncated documentation | +=============================================================================================+=======================================================+ | :func:`display ` | affichage | +---------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :func:`pygame_simulation ` | Simulation graphique. Illuste la résolution du puzzle | +---------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :func:`round ` | arrondit chaque couleur | +---------------------------------------------------------------------------------------------+-------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | method | truncated documentation | +=======================================================================================================+======================================+ | :py:meth:`__init__ ` | constructeur | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :py:meth:`__init__ ` | constructeur | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :py:meth:`_initialisation ` | | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :py:meth:`_voisinage ` | calcul de la répartition du voisiage | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :py:meth:`_voisinage ` | calcul de la répartition du voisiage | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :meth:`count ` | | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :meth:`count ` | | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :meth:`evolution ` | évolution d'une itération à l'autre | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ | :meth:`evolution ` | évolution d'une itération à l'autre | +-------------------------------------------------------------------------------------------------------+--------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.special.voisinage_evolution :members: :special-members: __init__ :show-inheritance: