Programmation avec Netlogo
Fermé
Romeric
-
Modifié par KX le 31/12/2016 à 22:13
KX Messages postés 16755 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 12 février 2025 - 31 déc. 2016 à 22:21
KX Messages postés 16755 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 12 février 2025 - 31 déc. 2016 à 22:21
A voir également:
- Programmation avec Netlogo
- Application de programmation - Guide
- Programmation logo tortue télécharger - Télécharger - Études & Formations
- Programmation télécommande porte de garage brico depot - Forum Matériel & Système
- Problème de programmation digicode extel klavy 3 ✓ - Forum Loisirs / Divertissements
- Programmation binaire - Guide
1 réponse
KX
Messages postés
16755
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
12 février 2025
3 020
31 déc. 2016 à 22:21
31 déc. 2016 à 22:21
Bonsoir,
Si tu as le code, tu dois aussi avoir les commentaires qui vont avec :
Et plus globalement, tu as la description du modèle sur le site de NetLogo
http://ccl.northwestern.edu/netlogo/models/ElFarol
Si tu as le code, tu dois aussi avoir les commentaires qui vont avec :
;; This reports an agent's prediction of the current attendance ;; using a particular strategy and portion of the attendance history. ;; More specifically, the strategy is then described by the formula ;; p(t) = x(t - 1) * a(t - 1) + x(t - 2) * a(t -2) +.. ;; ... + x(t - MEMORY-SIZE) * a(t - MEMORY-SIZE) + c * 100, ;; where p(t) is the prediction at time t, x(t) is the attendance of the bar at time t, ;; a(t) is the weight for time t, c is a constant, and MEMORY-SIZE is an external parameter. to-report predict-attendance [strategy subhistory] ;; the first element of the strategy is the constant, c, in the prediction formula. ;; one can think of it as the the agent's prediction of the bar's attendance ;; in the absence of any other data ;; then we multiply each week in the history by its respective weight report 100 * first strategy + sum (map [?1 * ?2] butfirst strategy subhistory) end
Et plus globalement, tu as la description du modèle sur le site de NetLogo
http://ccl.northwestern.edu/netlogo/models/ElFarol