Skip to content

Commit

Permalink
Merge branch 'master' into c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey authored Oct 19, 2023
2 parents bd8b522 + 782cccc commit 6affd2a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions efel/cppcore/cfeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename T>
double calc_error_bio(const vector<T>& 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

0 comments on commit 6affd2a

Please sign in to comment.