diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e8cb4a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +*/ebin diff --git a/Ch_11/actuator.erl b/Ch_11/src/actuator.erl similarity index 100% rename from Ch_11/actuator.erl rename to Ch_11/src/actuator.erl diff --git a/Ch_11/benchmarker.erl b/Ch_11/src/benchmarker.erl similarity index 100% rename from Ch_11/benchmarker.erl rename to Ch_11/src/benchmarker.erl diff --git a/Ch_11/cortex.erl b/Ch_11/src/cortex.erl similarity index 100% rename from Ch_11/cortex.erl rename to Ch_11/src/cortex.erl diff --git a/Ch_11/exoself.erl b/Ch_11/src/exoself.erl similarity index 100% rename from Ch_11/exoself.erl rename to Ch_11/src/exoself.erl diff --git a/Ch_11/fitness_postprocessor.erl b/Ch_11/src/fitness_postprocessor.erl similarity index 100% rename from Ch_11/fitness_postprocessor.erl rename to Ch_11/src/fitness_postprocessor.erl diff --git a/Ch_11/functions.erl b/Ch_11/src/functions.erl similarity index 100% rename from Ch_11/functions.erl rename to Ch_11/src/functions.erl diff --git a/Ch_11/genome_mutator.erl b/Ch_11/src/genome_mutator.erl similarity index 100% rename from Ch_11/genome_mutator.erl rename to Ch_11/src/genome_mutator.erl diff --git a/Ch_11/genotype.erl b/Ch_11/src/genotype.erl similarity index 100% rename from Ch_11/genotype.erl rename to Ch_11/src/genotype.erl diff --git a/Ch_11/morphology.erl b/Ch_11/src/morphology.erl similarity index 100% rename from Ch_11/morphology.erl rename to Ch_11/src/morphology.erl diff --git a/Ch_11/neuron.erl b/Ch_11/src/neuron.erl similarity index 100% rename from Ch_11/neuron.erl rename to Ch_11/src/neuron.erl diff --git a/Ch_11/plasticity.erl b/Ch_11/src/plasticity.erl similarity index 100% rename from Ch_11/plasticity.erl rename to Ch_11/src/plasticity.erl diff --git a/Ch_11/polis.erl b/Ch_11/src/polis.erl similarity index 100% rename from Ch_11/polis.erl rename to Ch_11/src/polis.erl diff --git a/Ch_11/population_monitor.erl b/Ch_11/src/population_monitor.erl similarity index 100% rename from Ch_11/population_monitor.erl rename to Ch_11/src/population_monitor.erl diff --git a/Ch_11/records.hrl b/Ch_11/src/records.hrl similarity index 100% rename from Ch_11/records.hrl rename to Ch_11/src/records.hrl diff --git a/Ch_11/scape.erl b/Ch_11/src/scape.erl similarity index 100% rename from Ch_11/scape.erl rename to Ch_11/src/scape.erl diff --git a/Ch_11/selection_algorithm.erl b/Ch_11/src/selection_algorithm.erl similarity index 100% rename from Ch_11/selection_algorithm.erl rename to Ch_11/src/selection_algorithm.erl diff --git a/Ch_11/sensor.erl b/Ch_11/src/sensor.erl similarity index 100% rename from Ch_11/sensor.erl rename to Ch_11/src/sensor.erl diff --git a/Ch_11/signal_aggregator.erl b/Ch_11/src/signal_aggregator.erl similarity index 100% rename from Ch_11/signal_aggregator.erl rename to Ch_11/src/signal_aggregator.erl diff --git a/Ch_11/tot_topological_mutations.erl b/Ch_11/src/tot_topological_mutations.erl similarity index 100% rename from Ch_11/tot_topological_mutations.erl rename to Ch_11/src/tot_topological_mutations.erl diff --git a/Ch_11/tuning_duration.erl b/Ch_11/src/tuning_duration.erl similarity index 100% rename from Ch_11/tuning_duration.erl rename to Ch_11/src/tuning_duration.erl diff --git a/Ch_11/tuning_selection.erl b/Ch_11/src/tuning_selection.erl similarity index 100% rename from Ch_11/tuning_selection.erl rename to Ch_11/src/tuning_selection.erl diff --git a/Ch_12and13/actuator.erl b/Ch_12and13/src/actuator.erl similarity index 100% rename from Ch_12and13/actuator.erl rename to Ch_12and13/src/actuator.erl diff --git a/Ch_12and13/benchmarker.erl b/Ch_12and13/src/benchmarker.erl similarity index 100% rename from Ch_12and13/benchmarker.erl rename to Ch_12and13/src/benchmarker.erl diff --git a/Ch_12and13/cortex.erl b/Ch_12and13/src/cortex.erl similarity index 100% rename from Ch_12and13/cortex.erl rename to Ch_12and13/src/cortex.erl diff --git a/Ch_12and13/exoself.erl b/Ch_12and13/src/exoself.erl similarity index 100% rename from Ch_12and13/exoself.erl rename to Ch_12and13/src/exoself.erl diff --git a/Ch_12and13/fitness_postprocessor.erl b/Ch_12and13/src/fitness_postprocessor.erl similarity index 100% rename from Ch_12and13/fitness_postprocessor.erl rename to Ch_12and13/src/fitness_postprocessor.erl diff --git a/Ch_12and13/functions.erl b/Ch_12and13/src/functions.erl similarity index 100% rename from Ch_12and13/functions.erl rename to Ch_12and13/src/functions.erl diff --git a/Ch_12and13/genome_mutator.erl b/Ch_12and13/src/genome_mutator.erl similarity index 100% rename from Ch_12and13/genome_mutator.erl rename to Ch_12and13/src/genome_mutator.erl diff --git a/Ch_12and13/genotype.erl b/Ch_12and13/src/genotype.erl similarity index 100% rename from Ch_12and13/genotype.erl rename to Ch_12and13/src/genotype.erl diff --git a/Ch_12and13/morphology.erl b/Ch_12and13/src/morphology.erl similarity index 100% rename from Ch_12and13/morphology.erl rename to Ch_12and13/src/morphology.erl diff --git a/Ch_12and13/neuron.erl b/Ch_12and13/src/neuron.erl similarity index 100% rename from Ch_12and13/neuron.erl rename to Ch_12and13/src/neuron.erl diff --git a/Ch_12and13/plasticity.erl b/Ch_12and13/src/plasticity.erl similarity index 100% rename from Ch_12and13/plasticity.erl rename to Ch_12and13/src/plasticity.erl diff --git a/Ch_12and13/polis.erl b/Ch_12and13/src/polis.erl similarity index 100% rename from Ch_12and13/polis.erl rename to Ch_12and13/src/polis.erl diff --git a/Ch_12and13/population_monitor.erl b/Ch_12and13/src/population_monitor.erl similarity index 100% rename from Ch_12and13/population_monitor.erl rename to Ch_12and13/src/population_monitor.erl diff --git a/Ch_12and13/records.hrl b/Ch_12and13/src/records.hrl similarity index 100% rename from Ch_12and13/records.hrl rename to Ch_12and13/src/records.hrl diff --git a/Ch_12and13/scape.erl b/Ch_12and13/src/scape.erl similarity index 100% rename from Ch_12and13/scape.erl rename to Ch_12and13/src/scape.erl diff --git a/Ch_12and13/selection_algorithm.erl b/Ch_12and13/src/selection_algorithm.erl similarity index 100% rename from Ch_12and13/selection_algorithm.erl rename to Ch_12and13/src/selection_algorithm.erl diff --git a/Ch_12and13/sensor.erl b/Ch_12and13/src/sensor.erl similarity index 100% rename from Ch_12and13/sensor.erl rename to Ch_12and13/src/sensor.erl diff --git a/Ch_12and13/signal_aggregator.erl b/Ch_12and13/src/signal_aggregator.erl similarity index 100% rename from Ch_12and13/signal_aggregator.erl rename to Ch_12and13/src/signal_aggregator.erl diff --git a/Ch_12and13/tot_topological_mutations.erl b/Ch_12and13/src/tot_topological_mutations.erl similarity index 100% rename from Ch_12and13/tot_topological_mutations.erl rename to Ch_12and13/src/tot_topological_mutations.erl diff --git a/Ch_12and13/tuning_duration.erl b/Ch_12and13/src/tuning_duration.erl similarity index 100% rename from Ch_12and13/tuning_duration.erl rename to Ch_12and13/src/tuning_duration.erl diff --git a/Ch_12and13/tuning_selection.erl b/Ch_12and13/src/tuning_selection.erl similarity index 100% rename from Ch_12and13/tuning_selection.erl rename to Ch_12and13/src/tuning_selection.erl diff --git a/Ch_14/actuator.erl b/Ch_14/src/actuator.erl similarity index 100% rename from Ch_14/actuator.erl rename to Ch_14/src/actuator.erl diff --git a/Ch_14/benchmarker.erl b/Ch_14/src/benchmarker.erl similarity index 100% rename from Ch_14/benchmarker.erl rename to Ch_14/src/benchmarker.erl diff --git a/Ch_14/cortex.erl b/Ch_14/src/cortex.erl similarity index 100% rename from Ch_14/cortex.erl rename to Ch_14/src/cortex.erl diff --git a/Ch_14/exoself.erl b/Ch_14/src/exoself.erl similarity index 100% rename from Ch_14/exoself.erl rename to Ch_14/src/exoself.erl diff --git a/Ch_14/fitness_postprocessor.erl b/Ch_14/src/fitness_postprocessor.erl similarity index 100% rename from Ch_14/fitness_postprocessor.erl rename to Ch_14/src/fitness_postprocessor.erl diff --git a/Ch_14/functions.erl b/Ch_14/src/functions.erl similarity index 100% rename from Ch_14/functions.erl rename to Ch_14/src/functions.erl diff --git a/Ch_14/genome_mutator.erl b/Ch_14/src/genome_mutator.erl similarity index 100% rename from Ch_14/genome_mutator.erl rename to Ch_14/src/genome_mutator.erl diff --git a/Ch_14/genotype.erl b/Ch_14/src/genotype.erl similarity index 100% rename from Ch_14/genotype.erl rename to Ch_14/src/genotype.erl diff --git a/Ch_14/morphology.erl b/Ch_14/src/morphology.erl similarity index 100% rename from Ch_14/morphology.erl rename to Ch_14/src/morphology.erl diff --git a/Ch_14/neuron.erl b/Ch_14/src/neuron.erl similarity index 100% rename from Ch_14/neuron.erl rename to Ch_14/src/neuron.erl diff --git a/Ch_14/plasticity.erl b/Ch_14/src/plasticity.erl similarity index 100% rename from Ch_14/plasticity.erl rename to Ch_14/src/plasticity.erl diff --git a/Ch_14/polis.erl b/Ch_14/src/polis.erl similarity index 100% rename from Ch_14/polis.erl rename to Ch_14/src/polis.erl diff --git a/Ch_14/population_monitor.erl b/Ch_14/src/population_monitor.erl similarity index 100% rename from Ch_14/population_monitor.erl rename to Ch_14/src/population_monitor.erl diff --git a/Ch_14/records.hrl b/Ch_14/src/records.hrl similarity index 100% rename from Ch_14/records.hrl rename to Ch_14/src/records.hrl diff --git a/Ch_14/scape.erl b/Ch_14/src/scape.erl similarity index 100% rename from Ch_14/scape.erl rename to Ch_14/src/scape.erl diff --git a/Ch_14/selection_algorithm.erl b/Ch_14/src/selection_algorithm.erl similarity index 100% rename from Ch_14/selection_algorithm.erl rename to Ch_14/src/selection_algorithm.erl diff --git a/Ch_14/sensor.erl b/Ch_14/src/sensor.erl similarity index 100% rename from Ch_14/sensor.erl rename to Ch_14/src/sensor.erl diff --git a/Ch_14/signal_aggregator.erl b/Ch_14/src/signal_aggregator.erl similarity index 100% rename from Ch_14/signal_aggregator.erl rename to Ch_14/src/signal_aggregator.erl diff --git a/Ch_14/tot_topological_mutations.erl b/Ch_14/src/tot_topological_mutations.erl similarity index 100% rename from Ch_14/tot_topological_mutations.erl rename to Ch_14/src/tot_topological_mutations.erl diff --git a/Ch_14/tuning_duration.erl b/Ch_14/src/tuning_duration.erl similarity index 100% rename from Ch_14/tuning_duration.erl rename to Ch_14/src/tuning_duration.erl diff --git a/Ch_14/tuning_selection.erl b/Ch_14/src/tuning_selection.erl similarity index 100% rename from Ch_14/tuning_selection.erl rename to Ch_14/src/tuning_selection.erl diff --git a/Ch_15/actuator.erl b/Ch_15/src/actuator.erl similarity index 100% rename from Ch_15/actuator.erl rename to Ch_15/src/actuator.erl diff --git a/Ch_15/benchmarker.erl b/Ch_15/src/benchmarker.erl similarity index 100% rename from Ch_15/benchmarker.erl rename to Ch_15/src/benchmarker.erl diff --git a/Ch_15/cortex.erl b/Ch_15/src/cortex.erl similarity index 100% rename from Ch_15/cortex.erl rename to Ch_15/src/cortex.erl diff --git a/Ch_15/exoself.erl b/Ch_15/src/exoself.erl similarity index 100% rename from Ch_15/exoself.erl rename to Ch_15/src/exoself.erl diff --git a/Ch_15/fitness_postprocessor.erl b/Ch_15/src/fitness_postprocessor.erl similarity index 100% rename from Ch_15/fitness_postprocessor.erl rename to Ch_15/src/fitness_postprocessor.erl diff --git a/Ch_15/functions.erl b/Ch_15/src/functions.erl similarity index 100% rename from Ch_15/functions.erl rename to Ch_15/src/functions.erl diff --git a/Ch_15/genome_mutator.erl b/Ch_15/src/genome_mutator.erl similarity index 100% rename from Ch_15/genome_mutator.erl rename to Ch_15/src/genome_mutator.erl diff --git a/Ch_15/genotype.erl b/Ch_15/src/genotype.erl similarity index 100% rename from Ch_15/genotype.erl rename to Ch_15/src/genotype.erl diff --git a/Ch_15/morphology.erl b/Ch_15/src/morphology.erl similarity index 100% rename from Ch_15/morphology.erl rename to Ch_15/src/morphology.erl diff --git a/Ch_15/neuron.erl b/Ch_15/src/neuron.erl similarity index 100% rename from Ch_15/neuron.erl rename to Ch_15/src/neuron.erl diff --git a/Ch_15/plasticity.erl b/Ch_15/src/plasticity.erl similarity index 100% rename from Ch_15/plasticity.erl rename to Ch_15/src/plasticity.erl diff --git a/Ch_15/polis.erl b/Ch_15/src/polis.erl similarity index 100% rename from Ch_15/polis.erl rename to Ch_15/src/polis.erl diff --git a/Ch_15/population_monitor.erl b/Ch_15/src/population_monitor.erl similarity index 100% rename from Ch_15/population_monitor.erl rename to Ch_15/src/population_monitor.erl diff --git a/Ch_15/records.hrl b/Ch_15/src/records.hrl similarity index 100% rename from Ch_15/records.hrl rename to Ch_15/src/records.hrl diff --git a/Ch_15/scape.erl b/Ch_15/src/scape.erl similarity index 100% rename from Ch_15/scape.erl rename to Ch_15/src/scape.erl diff --git a/Ch_15/selection_algorithm.erl b/Ch_15/src/selection_algorithm.erl similarity index 100% rename from Ch_15/selection_algorithm.erl rename to Ch_15/src/selection_algorithm.erl diff --git a/Ch_15/sensor.erl b/Ch_15/src/sensor.erl similarity index 100% rename from Ch_15/sensor.erl rename to Ch_15/src/sensor.erl diff --git a/Ch_15/signal_aggregator.erl b/Ch_15/src/signal_aggregator.erl similarity index 100% rename from Ch_15/signal_aggregator.erl rename to Ch_15/src/signal_aggregator.erl diff --git a/Ch_15/tot_topological_mutations.erl b/Ch_15/src/tot_topological_mutations.erl similarity index 100% rename from Ch_15/tot_topological_mutations.erl rename to Ch_15/src/tot_topological_mutations.erl diff --git a/Ch_15/tuning_duration.erl b/Ch_15/src/tuning_duration.erl similarity index 100% rename from Ch_15/tuning_duration.erl rename to Ch_15/src/tuning_duration.erl diff --git a/Ch_15/tuning_selection.erl b/Ch_15/src/tuning_selection.erl similarity index 100% rename from Ch_15/tuning_selection.erl rename to Ch_15/src/tuning_selection.erl diff --git a/Ch_16/actuator.erl b/Ch_16/src/actuator.erl similarity index 100% rename from Ch_16/actuator.erl rename to Ch_16/src/actuator.erl diff --git a/Ch_16/benchmarker.erl b/Ch_16/src/benchmarker.erl similarity index 100% rename from Ch_16/benchmarker.erl rename to Ch_16/src/benchmarker.erl diff --git a/Ch_16/cortex.erl b/Ch_16/src/cortex.erl similarity index 100% rename from Ch_16/cortex.erl rename to Ch_16/src/cortex.erl diff --git a/Ch_16/exoself.erl b/Ch_16/src/exoself.erl similarity index 100% rename from Ch_16/exoself.erl rename to Ch_16/src/exoself.erl diff --git a/Ch_16/fitness_postprocessor.erl b/Ch_16/src/fitness_postprocessor.erl similarity index 100% rename from Ch_16/fitness_postprocessor.erl rename to Ch_16/src/fitness_postprocessor.erl diff --git a/Ch_16/functions.erl b/Ch_16/src/functions.erl similarity index 100% rename from Ch_16/functions.erl rename to Ch_16/src/functions.erl diff --git a/Ch_16/genome_mutator.erl b/Ch_16/src/genome_mutator.erl similarity index 100% rename from Ch_16/genome_mutator.erl rename to Ch_16/src/genome_mutator.erl diff --git a/Ch_16/genotype.erl b/Ch_16/src/genotype.erl similarity index 100% rename from Ch_16/genotype.erl rename to Ch_16/src/genotype.erl diff --git a/Ch_16/morphology.erl b/Ch_16/src/morphology.erl similarity index 100% rename from Ch_16/morphology.erl rename to Ch_16/src/morphology.erl diff --git a/Ch_16/neuron.erl b/Ch_16/src/neuron.erl similarity index 100% rename from Ch_16/neuron.erl rename to Ch_16/src/neuron.erl diff --git a/Ch_16/plasticity.erl b/Ch_16/src/plasticity.erl similarity index 100% rename from Ch_16/plasticity.erl rename to Ch_16/src/plasticity.erl diff --git a/Ch_16/polis.erl b/Ch_16/src/polis.erl similarity index 100% rename from Ch_16/polis.erl rename to Ch_16/src/polis.erl diff --git a/Ch_16/population_monitor.erl b/Ch_16/src/population_monitor.erl similarity index 100% rename from Ch_16/population_monitor.erl rename to Ch_16/src/population_monitor.erl diff --git a/Ch_16/records.hrl b/Ch_16/src/records.hrl similarity index 100% rename from Ch_16/records.hrl rename to Ch_16/src/records.hrl diff --git a/Ch_16/scape.erl b/Ch_16/src/scape.erl similarity index 100% rename from Ch_16/scape.erl rename to Ch_16/src/scape.erl diff --git a/Ch_16/selection_algorithm.erl b/Ch_16/src/selection_algorithm.erl similarity index 100% rename from Ch_16/selection_algorithm.erl rename to Ch_16/src/selection_algorithm.erl diff --git a/Ch_16/sensor.erl b/Ch_16/src/sensor.erl similarity index 100% rename from Ch_16/sensor.erl rename to Ch_16/src/sensor.erl diff --git a/Ch_16/signal_aggregator.erl b/Ch_16/src/signal_aggregator.erl similarity index 100% rename from Ch_16/signal_aggregator.erl rename to Ch_16/src/signal_aggregator.erl diff --git a/Ch_16/substrate.erl b/Ch_16/src/substrate.erl similarity index 100% rename from Ch_16/substrate.erl rename to Ch_16/src/substrate.erl diff --git a/Ch_16/substrate_cep.erl b/Ch_16/src/substrate_cep.erl similarity index 100% rename from Ch_16/substrate_cep.erl rename to Ch_16/src/substrate_cep.erl diff --git a/Ch_16/substrate_cpp.erl b/Ch_16/src/substrate_cpp.erl similarity index 100% rename from Ch_16/substrate_cpp.erl rename to Ch_16/src/substrate_cpp.erl diff --git a/Ch_16/tot_topological_mutations.erl b/Ch_16/src/tot_topological_mutations.erl similarity index 100% rename from Ch_16/tot_topological_mutations.erl rename to Ch_16/src/tot_topological_mutations.erl diff --git a/Ch_16/tuning_duration.erl b/Ch_16/src/tuning_duration.erl similarity index 100% rename from Ch_16/tuning_duration.erl rename to Ch_16/src/tuning_duration.erl diff --git a/Ch_16/tuning_selection.erl b/Ch_16/src/tuning_selection.erl similarity index 100% rename from Ch_16/tuning_selection.erl rename to Ch_16/src/tuning_selection.erl diff --git a/Ch_17/actuator.erl b/Ch_17/src/actuator.erl similarity index 100% rename from Ch_17/actuator.erl rename to Ch_17/src/actuator.erl diff --git a/Ch_17/benchmarker.erl b/Ch_17/src/benchmarker.erl similarity index 100% rename from Ch_17/benchmarker.erl rename to Ch_17/src/benchmarker.erl diff --git a/Ch_17/cortex.erl b/Ch_17/src/cortex.erl similarity index 100% rename from Ch_17/cortex.erl rename to Ch_17/src/cortex.erl diff --git a/Ch_17/exoself.erl b/Ch_17/src/exoself.erl similarity index 100% rename from Ch_17/exoself.erl rename to Ch_17/src/exoself.erl diff --git a/Ch_17/fitness_postprocessor.erl b/Ch_17/src/fitness_postprocessor.erl similarity index 100% rename from Ch_17/fitness_postprocessor.erl rename to Ch_17/src/fitness_postprocessor.erl diff --git a/Ch_17/functions.erl b/Ch_17/src/functions.erl similarity index 100% rename from Ch_17/functions.erl rename to Ch_17/src/functions.erl diff --git a/Ch_17/genome_mutator.erl b/Ch_17/src/genome_mutator.erl similarity index 100% rename from Ch_17/genome_mutator.erl rename to Ch_17/src/genome_mutator.erl diff --git a/Ch_17/genotype.erl b/Ch_17/src/genotype.erl similarity index 100% rename from Ch_17/genotype.erl rename to Ch_17/src/genotype.erl diff --git a/Ch_17/morphology.erl b/Ch_17/src/morphology.erl similarity index 100% rename from Ch_17/morphology.erl rename to Ch_17/src/morphology.erl diff --git a/Ch_17/neuron.erl b/Ch_17/src/neuron.erl similarity index 100% rename from Ch_17/neuron.erl rename to Ch_17/src/neuron.erl diff --git a/Ch_17/plasticity.erl b/Ch_17/src/plasticity.erl similarity index 100% rename from Ch_17/plasticity.erl rename to Ch_17/src/plasticity.erl diff --git a/Ch_17/polis.erl b/Ch_17/src/polis.erl similarity index 100% rename from Ch_17/polis.erl rename to Ch_17/src/polis.erl diff --git a/Ch_17/population_monitor.erl b/Ch_17/src/population_monitor.erl similarity index 100% rename from Ch_17/population_monitor.erl rename to Ch_17/src/population_monitor.erl diff --git a/Ch_17/records.hrl b/Ch_17/src/records.hrl similarity index 100% rename from Ch_17/records.hrl rename to Ch_17/src/records.hrl diff --git a/Ch_17/scape.erl b/Ch_17/src/scape.erl similarity index 100% rename from Ch_17/scape.erl rename to Ch_17/src/scape.erl diff --git a/Ch_17/selection_algorithm.erl b/Ch_17/src/selection_algorithm.erl similarity index 100% rename from Ch_17/selection_algorithm.erl rename to Ch_17/src/selection_algorithm.erl diff --git a/Ch_17/sensor.erl b/Ch_17/src/sensor.erl similarity index 100% rename from Ch_17/sensor.erl rename to Ch_17/src/sensor.erl diff --git a/Ch_17/signal_aggregator.erl b/Ch_17/src/signal_aggregator.erl similarity index 100% rename from Ch_17/signal_aggregator.erl rename to Ch_17/src/signal_aggregator.erl diff --git a/Ch_17/substrate.erl b/Ch_17/src/substrate.erl similarity index 100% rename from Ch_17/substrate.erl rename to Ch_17/src/substrate.erl diff --git a/Ch_17/substrate_cep.erl b/Ch_17/src/substrate_cep.erl similarity index 100% rename from Ch_17/substrate_cep.erl rename to Ch_17/src/substrate_cep.erl diff --git a/Ch_17/substrate_cpp.erl b/Ch_17/src/substrate_cpp.erl similarity index 100% rename from Ch_17/substrate_cpp.erl rename to Ch_17/src/substrate_cpp.erl diff --git a/Ch_17/tot_topological_mutations.erl b/Ch_17/src/tot_topological_mutations.erl similarity index 100% rename from Ch_17/tot_topological_mutations.erl rename to Ch_17/src/tot_topological_mutations.erl diff --git a/Ch_17/tuning_duration.erl b/Ch_17/src/tuning_duration.erl similarity index 100% rename from Ch_17/tuning_duration.erl rename to Ch_17/src/tuning_duration.erl diff --git a/Ch_17/tuning_selection.erl b/Ch_17/src/tuning_selection.erl similarity index 100% rename from Ch_17/tuning_selection.erl rename to Ch_17/src/tuning_selection.erl diff --git a/Ch_18/actuator.erl b/Ch_18/src/actuator.erl similarity index 100% rename from Ch_18/actuator.erl rename to Ch_18/src/actuator.erl diff --git a/Ch_18/benchmarker.erl b/Ch_18/src/benchmarker.erl similarity index 100% rename from Ch_18/benchmarker.erl rename to Ch_18/src/benchmarker.erl diff --git a/Ch_18/cortex.erl b/Ch_18/src/cortex.erl similarity index 100% rename from Ch_18/cortex.erl rename to Ch_18/src/cortex.erl diff --git a/Ch_18/exoself.erl b/Ch_18/src/exoself.erl similarity index 100% rename from Ch_18/exoself.erl rename to Ch_18/src/exoself.erl diff --git a/Ch_18/fitness_postprocessor.erl b/Ch_18/src/fitness_postprocessor.erl similarity index 100% rename from Ch_18/fitness_postprocessor.erl rename to Ch_18/src/fitness_postprocessor.erl diff --git a/Ch_18/flatland.erl b/Ch_18/src/flatland.erl similarity index 100% rename from Ch_18/flatland.erl rename to Ch_18/src/flatland.erl diff --git a/Ch_18/functions.erl b/Ch_18/src/functions.erl similarity index 100% rename from Ch_18/functions.erl rename to Ch_18/src/functions.erl diff --git a/Ch_18/genome_mutator.erl b/Ch_18/src/genome_mutator.erl similarity index 100% rename from Ch_18/genome_mutator.erl rename to Ch_18/src/genome_mutator.erl diff --git a/Ch_18/genotype.erl b/Ch_18/src/genotype.erl similarity index 100% rename from Ch_18/genotype.erl rename to Ch_18/src/genotype.erl diff --git a/Ch_18/morphology.erl b/Ch_18/src/morphology.erl similarity index 100% rename from Ch_18/morphology.erl rename to Ch_18/src/morphology.erl diff --git a/Ch_18/neuron.erl b/Ch_18/src/neuron.erl similarity index 100% rename from Ch_18/neuron.erl rename to Ch_18/src/neuron.erl diff --git a/Ch_18/plasticity.erl b/Ch_18/src/plasticity.erl similarity index 100% rename from Ch_18/plasticity.erl rename to Ch_18/src/plasticity.erl diff --git a/Ch_18/polis.erl b/Ch_18/src/polis.erl similarity index 100% rename from Ch_18/polis.erl rename to Ch_18/src/polis.erl diff --git a/Ch_18/population_monitor.erl b/Ch_18/src/population_monitor.erl similarity index 100% rename from Ch_18/population_monitor.erl rename to Ch_18/src/population_monitor.erl diff --git a/Ch_18/records.hrl b/Ch_18/src/records.hrl similarity index 100% rename from Ch_18/records.hrl rename to Ch_18/src/records.hrl diff --git a/Ch_18/scape.erl b/Ch_18/src/scape.erl similarity index 100% rename from Ch_18/scape.erl rename to Ch_18/src/scape.erl diff --git a/Ch_18/selection_algorithm.erl b/Ch_18/src/selection_algorithm.erl similarity index 100% rename from Ch_18/selection_algorithm.erl rename to Ch_18/src/selection_algorithm.erl diff --git a/Ch_18/sensor.erl b/Ch_18/src/sensor.erl similarity index 100% rename from Ch_18/sensor.erl rename to Ch_18/src/sensor.erl diff --git a/Ch_18/signal_aggregator.erl b/Ch_18/src/signal_aggregator.erl similarity index 100% rename from Ch_18/signal_aggregator.erl rename to Ch_18/src/signal_aggregator.erl diff --git a/Ch_18/substrate.erl b/Ch_18/src/substrate.erl similarity index 100% rename from Ch_18/substrate.erl rename to Ch_18/src/substrate.erl diff --git a/Ch_18/substrate_cep.erl b/Ch_18/src/substrate_cep.erl similarity index 100% rename from Ch_18/substrate_cep.erl rename to Ch_18/src/substrate_cep.erl diff --git a/Ch_18/substrate_cpp.erl b/Ch_18/src/substrate_cpp.erl similarity index 100% rename from Ch_18/substrate_cpp.erl rename to Ch_18/src/substrate_cpp.erl diff --git a/Ch_18/tot_topological_mutations.erl b/Ch_18/src/tot_topological_mutations.erl similarity index 100% rename from Ch_18/tot_topological_mutations.erl rename to Ch_18/src/tot_topological_mutations.erl diff --git a/Ch_18/tuning_duration.erl b/Ch_18/src/tuning_duration.erl similarity index 100% rename from Ch_18/tuning_duration.erl rename to Ch_18/src/tuning_duration.erl diff --git a/Ch_18/tuning_selection.erl b/Ch_18/src/tuning_selection.erl similarity index 100% rename from Ch_18/tuning_selection.erl rename to Ch_18/src/tuning_selection.erl diff --git a/Ch_18/visor.erl b/Ch_18/src/visor.erl similarity index 100% rename from Ch_18/visor.erl rename to Ch_18/src/visor.erl diff --git a/Ch_19/actuator.erl b/Ch_19/src/actuator.erl similarity index 100% rename from Ch_19/actuator.erl rename to Ch_19/src/actuator.erl diff --git a/Ch_19/benchmarker.erl b/Ch_19/src/benchmarker.erl similarity index 100% rename from Ch_19/benchmarker.erl rename to Ch_19/src/benchmarker.erl diff --git a/Ch_19/cortex.erl b/Ch_19/src/cortex.erl similarity index 100% rename from Ch_19/cortex.erl rename to Ch_19/src/cortex.erl diff --git a/Ch_19/exoself.erl b/Ch_19/src/exoself.erl similarity index 100% rename from Ch_19/exoself.erl rename to Ch_19/src/exoself.erl diff --git a/Ch_19/fitness_postprocessor.erl b/Ch_19/src/fitness_postprocessor.erl similarity index 100% rename from Ch_19/fitness_postprocessor.erl rename to Ch_19/src/fitness_postprocessor.erl diff --git a/Ch_19/functions.erl b/Ch_19/src/functions.erl similarity index 100% rename from Ch_19/functions.erl rename to Ch_19/src/functions.erl diff --git a/Ch_19/fx.erl b/Ch_19/src/fx.erl similarity index 100% rename from Ch_19/fx.erl rename to Ch_19/src/fx.erl diff --git a/Ch_19/genome_mutator.erl b/Ch_19/src/genome_mutator.erl similarity index 100% rename from Ch_19/genome_mutator.erl rename to Ch_19/src/genome_mutator.erl diff --git a/Ch_19/genotype.erl b/Ch_19/src/genotype.erl similarity index 100% rename from Ch_19/genotype.erl rename to Ch_19/src/genotype.erl diff --git a/Ch_19/morphology.erl b/Ch_19/src/morphology.erl similarity index 100% rename from Ch_19/morphology.erl rename to Ch_19/src/morphology.erl diff --git a/Ch_19/neuron.erl b/Ch_19/src/neuron.erl similarity index 100% rename from Ch_19/neuron.erl rename to Ch_19/src/neuron.erl diff --git a/Ch_19/plasticity.erl b/Ch_19/src/plasticity.erl similarity index 100% rename from Ch_19/plasticity.erl rename to Ch_19/src/plasticity.erl diff --git a/Ch_19/polis.erl b/Ch_19/src/polis.erl similarity index 100% rename from Ch_19/polis.erl rename to Ch_19/src/polis.erl diff --git a/Ch_19/population_monitor.erl b/Ch_19/src/population_monitor.erl similarity index 100% rename from Ch_19/population_monitor.erl rename to Ch_19/src/population_monitor.erl diff --git a/Ch_19/records.hrl b/Ch_19/src/records.hrl similarity index 100% rename from Ch_19/records.hrl rename to Ch_19/src/records.hrl diff --git a/Ch_19/scape.erl b/Ch_19/src/scape.erl similarity index 100% rename from Ch_19/scape.erl rename to Ch_19/src/scape.erl diff --git a/Ch_19/selection_algorithm.erl b/Ch_19/src/selection_algorithm.erl similarity index 100% rename from Ch_19/selection_algorithm.erl rename to Ch_19/src/selection_algorithm.erl diff --git a/Ch_19/sensor.erl b/Ch_19/src/sensor.erl similarity index 100% rename from Ch_19/sensor.erl rename to Ch_19/src/sensor.erl diff --git a/Ch_19/signal_aggregator.erl b/Ch_19/src/signal_aggregator.erl similarity index 100% rename from Ch_19/signal_aggregator.erl rename to Ch_19/src/signal_aggregator.erl diff --git a/Ch_19/substrate.erl b/Ch_19/src/substrate.erl similarity index 100% rename from Ch_19/substrate.erl rename to Ch_19/src/substrate.erl diff --git a/Ch_19/substrate_cep.erl b/Ch_19/src/substrate_cep.erl similarity index 100% rename from Ch_19/substrate_cep.erl rename to Ch_19/src/substrate_cep.erl diff --git a/Ch_19/substrate_cpp.erl b/Ch_19/src/substrate_cpp.erl similarity index 100% rename from Ch_19/substrate_cpp.erl rename to Ch_19/src/substrate_cpp.erl diff --git a/Ch_19/tot_topological_mutations.erl b/Ch_19/src/tot_topological_mutations.erl similarity index 100% rename from Ch_19/tot_topological_mutations.erl rename to Ch_19/src/tot_topological_mutations.erl diff --git a/Ch_6/actuator.erl b/Ch_6/src/actuator.erl similarity index 100% rename from Ch_6/actuator.erl rename to Ch_6/src/actuator.erl diff --git a/Ch_6/constructor.erl b/Ch_6/src/constructor.erl similarity index 100% rename from Ch_6/constructor.erl rename to Ch_6/src/constructor.erl diff --git a/Ch_6/cortex.erl b/Ch_6/src/cortex.erl similarity index 100% rename from Ch_6/cortex.erl rename to Ch_6/src/cortex.erl diff --git a/Ch_6/exoself.erl b/Ch_6/src/exoself.erl similarity index 100% rename from Ch_6/exoself.erl rename to Ch_6/src/exoself.erl diff --git a/Ch_6/neuron.erl b/Ch_6/src/neuron.erl similarity index 100% rename from Ch_6/neuron.erl rename to Ch_6/src/neuron.erl diff --git a/Ch_6/records.hrl b/Ch_6/src/records.hrl similarity index 100% rename from Ch_6/records.hrl rename to Ch_6/src/records.hrl diff --git a/Ch_6/sensor.erl b/Ch_6/src/sensor.erl similarity index 100% rename from Ch_6/sensor.erl rename to Ch_6/src/sensor.erl diff --git a/Ch_6/simple_neuron.erl b/Ch_6/src/simple_neuron.erl similarity index 100% rename from Ch_6/simple_neuron.erl rename to Ch_6/src/simple_neuron.erl diff --git a/Ch_6/simplest_nn.erl b/Ch_6/src/simplest_nn.erl similarity index 100% rename from Ch_6/simplest_nn.erl rename to Ch_6/src/simplest_nn.erl diff --git a/Ch_7/actuator.erl b/Ch_7/src/actuator.erl similarity index 100% rename from Ch_7/actuator.erl rename to Ch_7/src/actuator.erl diff --git a/Ch_7/benchmarker.erl b/Ch_7/src/benchmarker.erl similarity index 100% rename from Ch_7/benchmarker.erl rename to Ch_7/src/benchmarker.erl diff --git a/Ch_7/cortex.erl b/Ch_7/src/cortex.erl similarity index 100% rename from Ch_7/cortex.erl rename to Ch_7/src/cortex.erl diff --git a/Ch_7/exoself.erl b/Ch_7/src/exoself.erl similarity index 100% rename from Ch_7/exoself.erl rename to Ch_7/src/exoself.erl diff --git a/Ch_7/genotype.erl b/Ch_7/src/genotype.erl similarity index 100% rename from Ch_7/genotype.erl rename to Ch_7/src/genotype.erl diff --git a/Ch_7/morphology.erl b/Ch_7/src/morphology.erl similarity index 100% rename from Ch_7/morphology.erl rename to Ch_7/src/morphology.erl diff --git a/Ch_7/neuron.erl b/Ch_7/src/neuron.erl similarity index 100% rename from Ch_7/neuron.erl rename to Ch_7/src/neuron.erl diff --git a/Ch_7/records.hrl b/Ch_7/src/records.hrl similarity index 100% rename from Ch_7/records.hrl rename to Ch_7/src/records.hrl diff --git a/Ch_7/scape.erl b/Ch_7/src/scape.erl similarity index 100% rename from Ch_7/scape.erl rename to Ch_7/src/scape.erl diff --git a/Ch_7/sensor.erl b/Ch_7/src/sensor.erl similarity index 100% rename from Ch_7/sensor.erl rename to Ch_7/src/sensor.erl diff --git a/Ch_7/trainer.erl b/Ch_7/src/trainer.erl similarity index 100% rename from Ch_7/trainer.erl rename to Ch_7/src/trainer.erl diff --git a/Ch_8/actuator.erl b/Ch_8/src/actuator.erl similarity index 100% rename from Ch_8/actuator.erl rename to Ch_8/src/actuator.erl diff --git a/Ch_8/benchmarker.erl b/Ch_8/src/benchmarker.erl similarity index 100% rename from Ch_8/benchmarker.erl rename to Ch_8/src/benchmarker.erl diff --git a/Ch_8/cortex.erl b/Ch_8/src/cortex.erl similarity index 100% rename from Ch_8/cortex.erl rename to Ch_8/src/cortex.erl diff --git a/Ch_8/exoself.erl b/Ch_8/src/exoself.erl similarity index 100% rename from Ch_8/exoself.erl rename to Ch_8/src/exoself.erl diff --git a/Ch_8/functions.erl b/Ch_8/src/functions.erl similarity index 100% rename from Ch_8/functions.erl rename to Ch_8/src/functions.erl diff --git a/Ch_8/genome_mutator.erl b/Ch_8/src/genome_mutator.erl similarity index 100% rename from Ch_8/genome_mutator.erl rename to Ch_8/src/genome_mutator.erl diff --git a/Ch_8/genotype.erl b/Ch_8/src/genotype.erl similarity index 100% rename from Ch_8/genotype.erl rename to Ch_8/src/genotype.erl diff --git a/Ch_8/morphology.erl b/Ch_8/src/morphology.erl similarity index 100% rename from Ch_8/morphology.erl rename to Ch_8/src/morphology.erl diff --git a/Ch_8/neuron.erl b/Ch_8/src/neuron.erl similarity index 100% rename from Ch_8/neuron.erl rename to Ch_8/src/neuron.erl diff --git a/Ch_8/polis.erl b/Ch_8/src/polis.erl similarity index 100% rename from Ch_8/polis.erl rename to Ch_8/src/polis.erl diff --git a/Ch_8/population_monitor.erl b/Ch_8/src/population_monitor.erl similarity index 100% rename from Ch_8/population_monitor.erl rename to Ch_8/src/population_monitor.erl diff --git a/Ch_8/records.hrl b/Ch_8/src/records.hrl similarity index 100% rename from Ch_8/records.hrl rename to Ch_8/src/records.hrl diff --git a/Ch_8/scape.erl b/Ch_8/src/scape.erl similarity index 100% rename from Ch_8/scape.erl rename to Ch_8/src/scape.erl diff --git a/Ch_8/sensor.erl b/Ch_8/src/sensor.erl similarity index 100% rename from Ch_8/sensor.erl rename to Ch_8/src/sensor.erl diff --git a/Ch_8/trainer.erl b/Ch_8/src/trainer.erl similarity index 100% rename from Ch_8/trainer.erl rename to Ch_8/src/trainer.erl diff --git a/Ch_9/actuator.erl b/Ch_9/src/actuator.erl similarity index 100% rename from Ch_9/actuator.erl rename to Ch_9/src/actuator.erl diff --git a/Ch_9/benchmarker.erl b/Ch_9/src/benchmarker.erl similarity index 100% rename from Ch_9/benchmarker.erl rename to Ch_9/src/benchmarker.erl diff --git a/Ch_9/cortex.erl b/Ch_9/src/cortex.erl similarity index 100% rename from Ch_9/cortex.erl rename to Ch_9/src/cortex.erl diff --git a/Ch_9/exoself.erl b/Ch_9/src/exoself.erl similarity index 100% rename from Ch_9/exoself.erl rename to Ch_9/src/exoself.erl diff --git a/Ch_9/functions.erl b/Ch_9/src/functions.erl similarity index 100% rename from Ch_9/functions.erl rename to Ch_9/src/functions.erl diff --git a/Ch_9/genome_mutator.erl b/Ch_9/src/genome_mutator.erl similarity index 100% rename from Ch_9/genome_mutator.erl rename to Ch_9/src/genome_mutator.erl diff --git a/Ch_9/genotype.erl b/Ch_9/src/genotype.erl similarity index 100% rename from Ch_9/genotype.erl rename to Ch_9/src/genotype.erl diff --git a/Ch_9/morphology.erl b/Ch_9/src/morphology.erl similarity index 100% rename from Ch_9/morphology.erl rename to Ch_9/src/morphology.erl diff --git a/Ch_9/neuron.erl b/Ch_9/src/neuron.erl similarity index 100% rename from Ch_9/neuron.erl rename to Ch_9/src/neuron.erl diff --git a/Ch_9/polis.erl b/Ch_9/src/polis.erl similarity index 100% rename from Ch_9/polis.erl rename to Ch_9/src/polis.erl diff --git a/Ch_9/population_monitor.erl b/Ch_9/src/population_monitor.erl similarity index 100% rename from Ch_9/population_monitor.erl rename to Ch_9/src/population_monitor.erl diff --git a/Ch_9/records.hrl b/Ch_9/src/records.hrl similarity index 100% rename from Ch_9/records.hrl rename to Ch_9/src/records.hrl diff --git a/Ch_9/scape.erl b/Ch_9/src/scape.erl similarity index 100% rename from Ch_9/scape.erl rename to Ch_9/src/scape.erl diff --git a/Ch_9/sensor.erl b/Ch_9/src/sensor.erl similarity index 100% rename from Ch_9/sensor.erl rename to Ch_9/src/sensor.erl diff --git a/Ch_9/trainer.erl b/Ch_9/src/trainer.erl similarity index 100% rename from Ch_9/trainer.erl rename to Ch_9/src/trainer.erl diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e02b70e --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +.PHONY: compile + +compile: + for i in `ls -d */`; do \ + echo "$${i}src/*.erl ==> $${i}ebin/"; \ + erlc -W0 -o $${i}ebin $${i}src/*.erl; \ + done + +clean: + for i in `ls -d */`; do rm $i/ebin/*; done + +run: + @echo "Must include a directory. IE) make run_Ch_6"; + +run_%: + @echo "Running: erl -sname neuro_$*@localhost -pa $*/ebin -eval \"[code:ensure_loaded(list_to_atom(filename:rootname(filename:basename(F)))) || F <- filelib:wildcard(\"$*/ebin\" ++ \"/*.beam\")]\""; \ + erl -sname neuro_$*@localhost -pa $*/ebin -eval "[code:ensure_loaded(list_to_atom(filename:rootname(filename:basename(F)))) || F <- filelib:wildcard(\"$*/ebin\" ++ \"/*.beam\")]";