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