diff --git a/src/post_treatments/aevol_post_create_eps.cpp b/src/post_treatments/aevol_post_create_eps.cpp index 54b9b62643d96c6bdcec30360f268006b7e35a13..c51d5c16f88a2ef07c97d06323aef47e8fb12b94 100644 --- a/src/post_treatments/aevol_post_create_eps.cpp +++ b/src/post_treatments/aevol_post_create_eps.cpp @@ -36,8 +36,6 @@ #include <sys/stat.h> // for the permission symbols used with mkdir #include <errno.h> -#include "legacy/phenotype/fuzzy/HybridFuzzy.h" - // ================================================================= // Project Files // ================================================================= @@ -450,14 +448,6 @@ void draw_pos_neg_profiles(Individual* indiv, const PhenotypicTarget& target, if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0) for (const auto& p: ((Fuzzy*)indiv->phenotype_activ())->points()) fprintf(drawingfile, "%lf %lf lineto\n", margin + scale * p.x, 0.5 + scale * p.y); - else - for (int i=0; i < ((HybridFuzzy*)indiv->phenotype_activ())->get_pheno_size(); i++) { - int xi = (int) ( i / ((HybridFuzzy*)indiv->phenotype_activ())->get_pheno_size()); - - fprintf(drawingfile, "%lf %lf lineto\n", margin + - scale * xi, 0.5 + scale * - ((HybridFuzzy*) indiv->phenotype_activ())->points()[i]); - } fprintf(drawingfile, "stroke\n" ); // ----------------------- @@ -471,13 +461,6 @@ void draw_pos_neg_profiles(Individual* indiv, const PhenotypicTarget& target, if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0) for (const auto& p: ((Fuzzy*)indiv->phenotype_inhib())->points()) fprintf( drawingfile, "%lf %lf lineto\n", margin + scale * p.x, 0.5 + scale * p.y); - else - for (int i=0; i < ((HybridFuzzy*)indiv->phenotype_inhib())->get_pheno_size(); i++) { - int xi = (int) ( i / ((HybridFuzzy*)indiv->phenotype_inhib())->get_pheno_size()); - fprintf(drawingfile, "%lf %lf lineto\n", margin + - scale * xi, 0.5 + scale * - ((HybridFuzzy*) indiv->phenotype_inhib())->points()[i]); - } fprintf( drawingfile, "stroke\n" ); fprintf(drawingfile,"%%%%EOF\n"); @@ -588,16 +571,6 @@ void draw_phenotype(Individual* indiv, const PhenotypicTarget& target, if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0) for (const auto& p: ((Fuzzy*)indiv->phenotype())->points()) fprintf(drawingfile, "%lf %lf lineto\n", margin + scale * p.x, margin + scale * p.y); - else { - for (int i=0; i < ((HybridFuzzy*)indiv->phenotype())->get_pheno_size(); i++) { - - float xi = (i / (float) - ((HybridFuzzy*) indiv->phenotype())->get_pheno_size()); - fprintf(drawingfile, "%lf %lf lineto\n", margin + - scale * xi, margin + scale * - ((HybridFuzzy*) indiv->phenotype())->points()[i]); - } - } fprintf( drawingfile, "stroke\n" ); @@ -610,14 +583,6 @@ void draw_phenotype(Individual* indiv, const PhenotypicTarget& target, if (indiv->exp_m()->exp_s()->get_fuzzy_flavor() == 0) for (const auto& p: ((Fuzzy*)target.fuzzy())->points()) fprintf(drawingfile, "%lf %lf lineto\n", margin + scale * p.x, margin + scale * 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, "%lf %lf lineto\n", margin + - scale * xi, margin + scale * - ((HybridFuzzy*) target.fuzzy())->points()[i]); - } fprintf( drawingfile, "stroke\n" );