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

One fold: its training and test ranges, and where each one's history starts. More...

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

Collaboration diagram for algotradelib::backtest::Fold:

Public Attributes

std::size_t index_ {0}
 The fold's place, from 0, in order.
IndexRange train_
 The training range.
IndexRange test_
 The test range, test_ long; empty at its scheduled start when test_ is zero.
std::size_t train_warmup_ {0}
 The first position of the training range's history: train_.begin_ - warmup_.
std::size_t test_warmup_ {0}
 The first position of the test range's history: test_.begin_ - warmup_.

Detailed Description

One fold: its training and test ranges, and where each one's history starts.

Definition at line 40 of file folds.hpp.

Member Data Documentation

◆ index_

std::size_t algotradelib::backtest::Fold::index_ {0}

The fold's place, from 0, in order.

Definition at line 42 of file folds.hpp.

◆ test_

IndexRange algotradelib::backtest::Fold::test_

The test range, test_ long; empty at its scheduled start when test_ is zero.

Definition at line 46 of file folds.hpp.

◆ test_warmup_

std::size_t algotradelib::backtest::Fold::test_warmup_ {0}

The first position of the test range's history: test_.begin_ - warmup_.

Definition at line 50 of file folds.hpp.

◆ train_

IndexRange algotradelib::backtest::Fold::train_

The training range.

Definition at line 44 of file folds.hpp.

◆ train_warmup_

std::size_t algotradelib::backtest::Fold::train_warmup_ {0}

The first position of the training range's history: train_.begin_ - warmup_.

Definition at line 48 of file folds.hpp.


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