AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
autopas::FuzzyLogic::CrispSet Class Reference

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< CrispSetoperator* (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CrispSet()

autopas::FuzzyLogic::CrispSet::CrispSet ( const std::string &  name,
const std::pair< double, double > &  range 
)

Constructs a CrispSet with one dimension.

Parameters
nameThe name of the dimension.
rangeThe interval of possible values for this dimension.

Member Function Documentation

◆ getDimensions()

std::map< std::string, std::pair< double, double > > & autopas::FuzzyLogic::CrispSet::getDimensions ( )

Returns the dimensions of the CrispSet.

Returns
The dimensions of the CrispSet.

◆ operator*()

std::shared_ptr< CrispSet > autopas::FuzzyLogic::CrispSet::operator* ( CrispSet rhs) const

Overload of the operator* to calculate the "cartesian" product of two CrispSets.

The resulting CrispSet will contain all dimensions from both CrispSets.

Parameters
rhs
Returns
A new CrispSet, which is the cartesian product of this and rhs.

The documentation for this class was generated from the following files: