feat: arithmetic_mean and standard_deviation

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-11-20 00:20:40 +03:00
parent 2eb0fff95d
commit f12b1a9547
2 changed files with 50 additions and 11 deletions

View file

@ -3,6 +3,7 @@ fn main() {
println!("Hello, world!");
let input = Input::get();
let mut fitness_results = vec![];
let mut food_sources = FoodSource::create_food_sources(
input.food_source_number,
@ -59,6 +60,12 @@ fn main() {
);
}
}
give_output(best_food_source, run_counter)
fitness_results.push(best_food_source.fitness);
give_output(
best_food_source,
&fitness_results[..],
input.run,
run_counter,
)
}
}