Used to represent arbitrary Crisp-Sets, on which Fuzzy-Sets can be defined. More...
#include <CrispSet.h>
Public Member Functions | |
CrispSet ()=default | |
Constructs a CrispSet with empty dimensions. | |
CrispSet (const std::string &name, const std::pair< double, double > &range) | |
Constructs a CrispSet with one dimension. | |
std::shared_ptr< CrispSet > | operator* (CrispSet &rhs) const |
Overload of the operator* to calculate the "cartesian" product of two CrispSets. | |
std::map< std::string, std::pair< double, double > > & | getDimensions () |
Returns the dimensions of the CrispSet. | |
operator std::string () const | |
Returns a string representation of the CrispSet. | |
Used to represent arbitrary Crisp-Sets, on which Fuzzy-Sets can be defined.
In this implementation, a Crisp-Set is represented by a map of dimensions, where each dimension states a interval of possible values.
autopas::FuzzyLogic::CrispSet::CrispSet | ( | const std::string & | name, |
const std::pair< double, double > & | range | ||
) |
Constructs a CrispSet with one dimension.
name | The name of the dimension. |
range | The interval of possible values for this dimension. |
std::map< std::string, std::pair< double, double > > & autopas::FuzzyLogic::CrispSet::getDimensions | ( | ) |