From 782cccce3ddcaafff91a83625aff2db9f5637879 Mon Sep 17 00:00:00 2001 From: anilbey Date: Thu, 19 Oct 2023 11:26:14 +0200 Subject: [PATCH] remove calc_error_bio in cfeature (#324) --- efel/cppcore/cfeature.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/efel/cppcore/cfeature.h b/efel/cppcore/cfeature.h index 2bffbfdb..3fece8c3 100644 --- a/efel/cppcore/cfeature.h +++ b/efel/cppcore/cfeature.h @@ -70,20 +70,6 @@ class cFeature { double getDistance(string strName, double mean, double std, bool trace_check=true, double error_dist=250); - // calculation of GA errors - template - double calc_error_bio(const vector& v, double bio_mean, double bio_sd) - { - if (v.size() != 0) { - double error = 0.; - for (size_t i = 0; i < v.size(); i++) { - error += fabs(v[i] - bio_mean); - } - return error / bio_sd / v.size(); - } else { - return 250.; - } - } }; #endif