Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9b3b9bf8 authored by Théotime Grohens's avatar Théotime Grohens Committed by David Parsons
Browse files

Fix Fuzzy::clear()

The Fuzzy::clear() function completely discarded the points_ list,
but was supposed to reset it to its initial state with two
points at (X_MIN, 0.0) and (X_MAX, 0.0).

This commit fixes the function.
parent 79e91377
No related branches found
No related tags found
No related merge requests found
......@@ -470,8 +470,10 @@ void Fuzzy::reset() {
// assert(invariant());
}
/// Reset the fuzzy set to its original state, two points at
/// (X_MIN, 0.0) and (X_MAX, 0.0).
void Fuzzy::clear() {
points_.clear();
points_ = {Point(X_MIN, 0.0), Point(X_MAX, 0.0)};
}
void Fuzzy::add_point(ProteinConcentration x, ProteinConcentration y)
......
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