Mentions légales du service

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

remove HybridFuzzy-specific code

parent eaee8786
No related branches found
No related tags found
No related merge requests found
......@@ -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" );
......
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