apt-get install perl
apt-get install libgd-graph-perl
apt-get install libtext-csv-perl
apt-get install libstatistics-basic-perl
This is the main program that will do a single run when called directly
hopfield.pl takes several arguments in this order:
- N - default is 100 if not supplied
- P - default is 50 if not supplied
- filename for output data - default is run_data is not supplied
perl hopfield.pl
perl hopfield.pl -a <N> <P> <filename>
must be specified in that order
Example:perl hopfield.pl -a 100 50 output
This script runs hopfield X times where X <= 10
run_mult.pl takes several arguments in this order:
- Number of runs - for runtime reasons I limited this to <= 10. Default is 5 if not supplied
- N - default is 100 if not supplied
- P - default is 50 if not supplied
- filename for output data of each run - default is run{run#}
- filename for the congregation of the data - will not be called if not supplied
To call run_mult with the default parameters:
perl run_mult.pl
To call run_mult with arguments:
perl run_mult.pl -a <Number of runs> <N> <P> <filename> <congregation filename>
Example:perl run_mult.pl -a 5 100 50 run all
This script is called by run_mult and should not be called directly
Congregate will take all the output files made by hopfield and congregate that data into one file and produced a congregated graph of all runs for stable imprints and unstable fractions congregate deletes the indvidual files and graphs produced by hopfield