Mentions légales du service

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

move fn decl to .cpp

parent f439671b
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,25 @@ using std::endl;
namespace aevol {
Vector_Fuzzy::Vector_Fuzzy() {
points_.insert(Point(X_MIN, 0.0)); points_.insert(Point(X_MAX, 0.0));
}
Vector_Fuzzy::Vector_Fuzzy(const Vector_Fuzzy& f) {
points_ = f.points_;
}
Vector_Fuzzy::Vector_Fuzzy(const Fuzzy& f) {
for (auto p : f.points())
points_.insert(p);
}
Vector_Fuzzy::Vector_Fuzzy(const gzFile backup) {
load(backup);
}
Vector_Fuzzy::~Vector_Fuzzy() = default;
/// Get probability of x belonging to fuzzy set.
///
/// If there is an actual point in `points_` set with abscissa `x`
......
......@@ -80,22 +80,15 @@ class Vector_Fuzzy : public AbstractFuzzy_7
// ==========================================================================
// Constructors
// ==========================================================================
Vector_Fuzzy() { points_.insert(Point(X_MIN, 0.0)); points_.insert(Point(X_MAX, 0.0)); };
Vector_Fuzzy(const Vector_Fuzzy& f){
points_ = f.points_;
};
Vector_Fuzzy(const Fuzzy& f){
for (auto p : f.points())
points_.insert(p);
};
Vector_Fuzzy(const gzFile backup) { load(backup); };
Vector_Fuzzy();
Vector_Fuzzy(const Vector_Fuzzy& f);
Vector_Fuzzy(const Fuzzy& f);
Vector_Fuzzy(const gzFile backup);
// ==========================================================================
// Destructor
// ==========================================================================
virtual ~Vector_Fuzzy() {};
virtual ~Vector_Fuzzy();
// ==========================================================================
// Public Methods
......
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