PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge::hpo::EquityPointsView Struct Reference

Borrowed, strided view of an ordered array of records holding (time_ms, equity). More...

#include <pineforge/hpo/return_stats.hpp>

Public Attributes

const void * records = nullptr
 Address of record 0; may be null only when count is 0.
 
std::size_t count = 0
 Number of records (points).
 
std::size_t stride = 0
 Bytes between consecutive records.
 
std::size_t time_offset = 0
 Byte offset of the 64-bit signed time_ms member.
 
std::size_t equity_offset = 0
 Byte offset of the binary64 equity member.
 

Detailed Description

Borrowed, strided view of an ordered array of records holding (time_ms, equity).

The view is how the engine's per-bar curve record is read in place: the record may hold more members than these two and the reducer never copies or retains the curve. Build it with make_equity_points_view. The pointed-to memory must stay valid and unchanged for the duration of the compute_return_stats call only.

Definition at line 90 of file return_stats.hpp.

Member Data Documentation

◆ count

std::size_t pineforge::hpo::EquityPointsView::count = 0

Number of records (points).

Definition at line 92 of file return_stats.hpp.

◆ equity_offset

std::size_t pineforge::hpo::EquityPointsView::equity_offset = 0

Byte offset of the binary64 equity member.

Definition at line 95 of file return_stats.hpp.

◆ records

const void* pineforge::hpo::EquityPointsView::records = nullptr

Address of record 0; may be null only when count is 0.

Definition at line 91 of file return_stats.hpp.

◆ stride

std::size_t pineforge::hpo::EquityPointsView::stride = 0

Bytes between consecutive records.

Definition at line 93 of file return_stats.hpp.

◆ time_offset

std::size_t pineforge::hpo::EquityPointsView::time_offset = 0

Byte offset of the 64-bit signed time_ms member.

Definition at line 94 of file return_stats.hpp.


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