[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: graphs
From: |
Paul Johnson |
Subject: |
Re: graphs |
Date: |
Wed, 04 Oct 2000 10:29:10 -0500 |
Marcello Gallucci wrote:
>
> Hello
> if this is not the right please to ask detailed questions about swarm
> programming, please accept my apology and forget it.
> If it is:
> is there a simple way to obtain a graph of averaged sequences (like using
> EZGraph with averagesequence), broken down for different categories.
>
> Example:
> I have N agents of K types, and I want to graph their happyness along time,
> averaged across types. That is, a graph with K lines, each averaged over K/N
> agents.
I think this is what I have done in cases like that. Your N agents are
currently in one giant list, right? That's OK, but do this too:
Create K separate lists, and put those lists into a Swarm Array. Then
sort the agents into these lists. Then plot an average line for each
separate list. See what I mean?
This is pretty easy as long as your K does not change. If subgroups are
added or removed, then some fancy footwork is necessary. Sven Thomessen
worked out a thing we have been using for that kind of problem, it
involves createing a sequence and storing its name before inserting it
into a graph, and then using that stored name to remove it.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- graphs, Marcello Gallucci, 2000/10/04
- Re: graphs,
Paul Johnson <=