Table of Contents
Programming for Social ScientistsLecture 7
Today's topics
GridIPD: Adding 2D Space
Changes to GraphIPD...
Spatially represented agents
Creating and collecting players
Using an index to iterate
Shuffling agents on a list
Shuffling agents on a list (cont)
Shuffling agents - 2nd iteration
Neighborhoods of agents
The Von Neuman neighborhood
Populating neighborhoods
Adaptation: Player.m
Adaptation (cont)
Adaptation (cont)
Objects to display raster image
The Space library classes
The basic 2d classes
Some basic Discrete2d syntax
Creating a Colormap
Creating Raster
Creating Object2dDisplay
Exercise: Moore neighborhood
|
Author: Lars-Erik Cederman
Email: cederman@ucla.edu
Download presentation source
|