|
libmcts
A Monte Carlo Tree Search Library
|
A backpropagation strategy is used in each node. when a terminal node is simulated, its value is propagated back through every node on the path. every node saves that value according to the implementation of a specific on_backpropagate function. More...
#include <ibackpropagation_strategy.hpp>
Public Member Functions | |
| virtual void | on_backpropagate (const double &value)=0 |
| saves an value according to some metric. More... | |
| virtual double | ev () const =0 |
| gets the current expected value More... | |
| virtual double | std_deviation () const =0 |
| gets the current standard deviation More... | |
| virtual double | variance () const =0 |
| gets the current variance More... | |
| virtual int | nb_samples () const =0 |
| gets the number of samples that are saved in the strat. More... | |
| virtual IBackpropagationStrategy * | create ()=0 |
| creates a new object of the same type and with the same constructor as the current object. More... | |
A backpropagation strategy is used in each node. when a terminal node is simulated, its value is propagated back through every node on the path. every node saves that value according to the implementation of a specific on_backpropagate function.
Definition at line 13 of file ibackpropagation_strategy.hpp.
|
pure virtual |
creates a new object of the same type and with the same constructor as the current object.
Implemented in mcts::AvgBackpropagationStrategy.
|
pure virtual |
gets the current expected value
Implemented in mcts::AvgBackpropagationStrategy.
Referenced by mcts::InnerNode< Context, Config >::ev().
|
pure virtual |
gets the number of samples that are saved in the strat.
Implemented in mcts::AvgBackpropagationStrategy.
Referenced by mcts::InnerNode< Context, Config >::nb_samples().
|
pure virtual |
saves an value according to some metric.
| value | to store |
Implemented in mcts::AvgBackpropagationStrategy.
Referenced by mcts::InnerNode< Context, Config >::backpropagate().
|
pure virtual |
gets the current standard deviation
Implemented in mcts::AvgBackpropagationStrategy.
Referenced by mcts::InnerNode< Context, Config >::std_dev().
|
pure virtual |
gets the current variance
Implemented in mcts::AvgBackpropagationStrategy.
Referenced by mcts::InnerNode< Context, Config >::variance().
1.8.15