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

The lengths of a fold, in positions. More...

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

Public Attributes

std::size_t train_ {0}
 The training range's length (for Expanding, the first fold's); positive.
std::size_t test_ {0}
 The test range's length; zero makes each fold a plain window, train_.
std::size_t step_ {0}
 How far each fold's test range starts after the previous one's; positive.
std::size_t warmup_ {0}
 The positions of history every range has before it.

Detailed Description

The lengths of a fold, in positions.

Definition at line 28 of file folds.hpp.

Member Data Documentation

◆ step_

std::size_t algotradelib::backtest::FoldLengths::step_ {0}

How far each fold's test range starts after the previous one's; positive.

Definition at line 34 of file folds.hpp.

◆ test_

std::size_t algotradelib::backtest::FoldLengths::test_ {0}

The test range's length; zero makes each fold a plain window, train_.

Definition at line 32 of file folds.hpp.

◆ train_

std::size_t algotradelib::backtest::FoldLengths::train_ {0}

The training range's length (for Expanding, the first fold's); positive.

Definition at line 30 of file folds.hpp.

Referenced by algotradelib::backtest::Rolling::train().

◆ warmup_

std::size_t algotradelib::backtest::FoldLengths::warmup_ {0}

The positions of history every range has before it.

Definition at line 36 of file folds.hpp.

Referenced by algotradelib::backtest::Expanding::train().


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