home    family    work    school    resume



Downloads


Truth --- Code --- Results --- Discussion --- Downloads



These files will currently only run on a Linux machine.  They have been tested on Mandrake 8.0 and a Sun Solaris.  Download the file with out the .c extension to run the file without compiling.  You can also download the source code (.c) and compile yourself.  The command for compiling the code is > gcc honesty.c -o honesty -lm  This will create a file called honesty that can be run.  The same can be done for the make_config executable.

honesty  -- I suggest running the simulation for 100 interactions, 100 aging cycles and then as many recording cycles as you want.  To see results you probably need to run for at least 2000 recording cycles. ** This file is no longer available.

honesty.c -- Source Code

make_config-- This file will create the variables needed for honesty to run.  Try starting with -- 6, 1, 1, 2.5, .5, 2, .5 ** This file is no longer available.

make_config.c -- More Source Code
 


If you have run the program you have noticed that it doesn't do anything interesting. That is because I forgot to mention that you need to run gnuplot to graph the results. Sorry. You should have gnuplot on you system, but if you don't you can get it at www.gnuplot.org
I'll have the script up shortly that you use to look at the data and have it look nice. If you want to make your own script or tell gnuplot what to do manually you can. The file that the simulation makes is called "data" and it is overwritten everytime the program is run (so move it if you want to keep it and run another simulation). The command for gnuplot should be something like this:
> load 'data' u 1:2 s sbezier t "Calling w/ Battlements", 'data' u 1:3 s sbezier t "Calling w/o Battlements" ...etc
Follow this format for all seven lines, except I skip line 5, it is just the average energy of the prey population and is not very interesting. "s sbezier" is a smooth function that comes with newer versions of gnuplot, it makes the functions monatonic and then smooths it (?). If your version of gnuplot do not support this option replace it with "w lines" which stands for with lines. Feel free to email me at achase_ucsd@hotmail.com if you have any questions.

Truth --- Code --- Results --- Discussion --- Downloads