Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bd7fadc9 authored by David Parsons's avatar David Parsons
Browse files

remove HybridFuzzy-specific code

parent 579a8f01
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@
// =================================================================
#include "Individual_R.h"
#include "legacy/ExpManager.h"
#include "legacy/phenotype/fuzzy/HybridFuzzy.h"
namespace aevol {
......@@ -976,31 +975,19 @@ void Individual_R::draw_phenotype(const PhenotypicTarget& target, char* director
fprintf(drawingfile, "Generation,IndividualOrPhenotype,X,Y\n");
if (exp_m()->exp_s()->get_fuzzy_flavor() == 0)
if (exp_m()->exp_s()->get_fuzzy_flavor() == 0) {
for (const auto& p: ((Fuzzy*)phenotype_activ())->points())
fprintf(drawingfile, "%d,0,%lf,%lf\n",generation,p.x,p.y);
else {
for (int i=0; i < ((HybridFuzzy*)phenotype())->get_pheno_size(); i++) {
float xi = (i / (float)
((HybridFuzzy*) phenotype())->get_pheno_size());
fprintf(drawingfile, "%d,0,%lf,%lf\n",generation,xi,((HybridFuzzy*) phenotype())->points()[i]);
}
}
// ------------------
// draw environment
// ------------------
if (exp_m()->exp_s()->get_fuzzy_flavor() == 0)
if (exp_m()->exp_s()->get_fuzzy_flavor() == 0) {
for (const auto& p: ((Fuzzy*)target.fuzzy())->points())
fprintf(drawingfile, "%d,1,%lf,%lf\n", generation,p.x, p.y);
else
for (int i=0; i < ((HybridFuzzy*)target.fuzzy())->get_pheno_size(); i++) {
float xi = (i / (float)
((HybridFuzzy*)target.fuzzy())->get_pheno_size());
fprintf(drawingfile, "%d,1,%lf,%lf\n",generation,xi, ((HybridFuzzy*) target.fuzzy())->points()[i]);
}
}
fclose(drawingfile);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment