algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::backtest::Expanding Struct Reference

Training on every position from the end of the first history to each test range. More...

#include <algotradelib/src/backtest/folds.hpp>

Public Member Functions

IndexRange train (std::size_t test_begin, const FoldLengths &lengths) const
 Returns the training range of the test range starting at test_begin.

Detailed Description

Training on every position from the end of the first history to each test range.

Definition at line 67 of file folds.hpp.

Member Function Documentation

◆ train()

IndexRange algotradelib::backtest::Expanding::train ( std::size_t test_begin,
const FoldLengths & lengths ) const
inline

Returns the training range of the test range starting at test_begin.

Parameters
test_beginThe test range's first position.
lengthsThe fold lengths.
Returns
[warmup_, test_begin).

Definition at line 74 of file folds.hpp.


The documentation for this struct was generated from the following file: