Version:
3.0.0
Loading...
Searching...
No Matches
autopas
options
ExtrapolationMethodOption.h
Go to the documentation of this file.
1
7
#pragma once
8
9
#include <set>
10
11
#include "
autopas/options/Option.h
"
12
13
namespace
autopas
{
14
inline
namespace
options {
18
class
ExtrapolationMethodOption
:
public
Option
<ExtrapolationMethodOption> {
19
public
:
23
enum
Value
{
27
linePrediction
,
31
linearRegression
,
35
newton
,
39
lastResult
,
40
};
41
45
ExtrapolationMethodOption
() =
default
;
46
51
constexpr
ExtrapolationMethodOption
(
Value
option) : _value(option) {}
52
57
constexpr
operator
Value
()
const
{
return
_value; }
58
63
static
std::map<ExtrapolationMethodOption, std::string>
getOptionNames
() {
64
return
{
65
{
ExtrapolationMethodOption::linePrediction
,
"line-prediction"
},
66
{
ExtrapolationMethodOption::linearRegression
,
"linear-regression"
},
67
{
ExtrapolationMethodOption::newton
,
"newton"
},
68
{
ExtrapolationMethodOption::lastResult
,
"last-result"
},
69
};
70
};
71
72
private
:
73
Value
_value{
Value
(-1)};
74
};
75
}
// namespace options
76
}
// namespace autopas
Option.h
autopas::options::ExtrapolationMethodOption
Class representing the choices of possible extrapolation methods for predictiveTuning.
Definition:
ExtrapolationMethodOption.h:18
autopas::options::ExtrapolationMethodOption::ExtrapolationMethodOption
ExtrapolationMethodOption()=default
Constructor.
autopas::options::ExtrapolationMethodOption::Value
Value
Possible choices for the auto tuner.
Definition:
ExtrapolationMethodOption.h:23
autopas::options::ExtrapolationMethodOption::lastResult
@ lastResult
Simply use the last traversal time as an estimate (not actually an extrapolation)
Definition:
ExtrapolationMethodOption.h:39
autopas::options::ExtrapolationMethodOption::linearRegression
@ linearRegression
Places a line through the last _evidenceFirstPrediction points.
Definition:
ExtrapolationMethodOption.h:31
autopas::options::ExtrapolationMethodOption::linePrediction
@ linePrediction
Places a line through the last two data points.
Definition:
ExtrapolationMethodOption.h:27
autopas::options::ExtrapolationMethodOption::newton
@ newton
Places a polynomial function through a certain number of data points using Newtons method.
Definition:
ExtrapolationMethodOption.h:35
autopas::options::ExtrapolationMethodOption::ExtrapolationMethodOption
constexpr ExtrapolationMethodOption(Value option)
Constructor from value.
Definition:
ExtrapolationMethodOption.h:51
autopas::options::ExtrapolationMethodOption::getOptionNames
static std::map< ExtrapolationMethodOption, std::string > getOptionNames()
Provides a way to iterate over the possible choices of ExtrapolationMethods.
Definition:
ExtrapolationMethodOption.h:63
autopas::options::Option
Base class for autopas options.
Definition:
Option.h:25
autopas
This is the main namespace of AutoPas.
Definition:
AutoPasDecl.h:32
Generated by
1.9.7