algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
resample.hpp File Reference

Block bootstrap indices that are the same on every platform for a seed and a path. More...

#include <cstddef>
#include <cstdint>
#include <random>
#include <stdexcept>
#include <vector>
Include dependency graph for resample.hpp:

Go to the source code of this file.

Namespaces

namespace  algotradelib
 The library: broker-neutral types (core), and the modules below.
namespace  algotradelib::analytics
 Series buffers and frames, the conversions to and from exact decimals, and performance metrics.

Enumerations

enum class  algotradelib::analytics::BlockScheme { algotradelib::analytics::MOVING , algotradelib::analytics::CIRCULAR , algotradelib::analytics::STATIONARY }
 How a block bootstrap draws its blocks of consecutive returns. More...

Functions

std::vector< std::size_t > algotradelib::analytics::bootstrap_indices (std::size_t count, BlockScheme scheme, std::size_t block, std::uint64_t seed, std::uint64_t path)
 Draws the steps of one bootstrap path: entry k names the step from close j to close j + 1, as j, the path takes at step k.

Detailed Description

Block bootstrap indices that are the same on every platform for a seed and a path.

Definition in file resample.hpp.