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

Used to store the mapping information to transform the result of the fuzzy controller into a configuration suitable for AutoPas. More...

#include <OutputMapper.h>

Public Member Functions

 OutputMapper (std::string outputDomain, std::vector< std::pair< double, std::vector< ConfigurationPattern > > > mappings)
 Constructor of the OutputMapper.
 
 operator std::string () const
 Returns a string representation of the OutputMapping.
 
std::vector< ConfigurationPatterngetClosestConfigurationPatterns (double value)
 Returns the closest configuration patterns to the given value.
 
const std::string & getOutputDomain ()
 Getter for the output domain.
 
const std::vector< std::pair< double, std::vector< ConfigurationPattern > > > & getMappings () const
 Getter for the mappings.
 

Detailed Description

Used to store the mapping information to transform the result of the fuzzy controller into a configuration suitable for AutoPas.

Constructor & Destructor Documentation

◆ OutputMapper()

OutputMapper::OutputMapper ( std::string  outputDomain,
std::vector< std::pair< double, std::vector< ConfigurationPattern > > >  mappings 
)

Constructor of the OutputMapper.

Parameters
outputDomainThe domain of the output variable.
mappingsA vector of pairs of the form {value, configurationPatterns}.

Member Function Documentation

◆ getClosestConfigurationPatterns()

std::vector< autopas::ConfigurationPattern > OutputMapper::getClosestConfigurationPatterns ( double  value)

Returns the closest configuration patterns to the given value.

Parameters
valueThe value to search for.
Returns
The closest configuration patterns to the given value.

◆ getMappings()

const std::vector< std::pair< double, std::vector< ConfigurationPattern > > > & autopas::FuzzyLogic::OutputMapper::getMappings ( ) const
inline

Getter for the mappings.

Returns
The mappings.

◆ getOutputDomain()

const std::string & OutputMapper::getOutputDomain ( )

Getter for the output domain.

Returns
The output domain.

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