|
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
|
#include <fastmm/strategies/ab_test.hpp>
Public Member Functions | |
| AbPlan (const AbSection §ion, const InstrumentTable &instruments, std::span< const std::string > venue_names) | |
venue_names name the venue ids of instruments (Config::venues order), for [ab.weights] keys written "venue:symbol". | |
| const AbSection & | section () const noexcept |
| AbAssignment | assignment () const noexcept |
| std::size_t | arms () const noexcept |
| std::size_t | instruments () const noexcept |
| const std::string & | arm_name (int arm) const |
| const std::string & | instrument_name (std::size_t inst) const |
| The instrument's name in the configuration's terms: "venue:symbol". | |
| std::int64_t | start_ns () const noexcept |
| INT64_MIN: none. | |
| std::int64_t | end_ns () const noexcept |
| INT64_MAX: none. | |
| std::int64_t | block_ns () const noexcept |
| 0: no blocks | |
| std::int64_t | block_end (std::int64_t k) const noexcept |
When block k ends (time, crossover). | |
| bool | in_test (std::size_t inst) const noexcept |
| The instrument is in the test: [ab.assign] names it, or there is none. | |
| void | set_branch (int arm) noexcept |
| branch: the arm of this run, and the start when [ab] start names none. | |
| int | branch () const noexcept |
| void | set_default_start (std::int64_t ns) noexcept |
| int | arm_at (std::size_t inst, std::int64_t t) const noexcept |
The arm instrument inst is in at t (ns since the epoch): kNoArm before start and from end. | |
| std::int64_t | next_change (std::int64_t t) const noexcept |
The first time after t at which arm_at() may change, INT64_MAX when it never does. | |
| std::int64_t | block_of (std::int64_t t) const noexcept |
The block t falls in (time, crossover), 0 with instrument. | |
| std::int64_t | round_of (std::int64_t t) const noexcept |
The run of arms() blocks t falls in, each arm once in it (time, crossover); 0 with instrument. | |
| std::size_t | stratum (std::size_t inst) const noexcept |
| The instrument's stratum (instrument, crossover; 0 with time) and its slot in it. | |
| std::size_t | slot (std::size_t inst) const noexcept |
| bool | identical_arms () const noexcept |
| Every arm names the same parameters with the same values: an A/A test. | |
Static Public Attributes | |
| static constexpr int | kNoArm = -1 |
| fastmm::AbPlan::AbPlan | ( | const AbSection & | section, |
| const InstrumentTable & | instruments, | ||
| std::span< const std::string > | venue_names | ||
| ) |
venue_names name the venue ids of instruments (Config::venues order), for [ab.weights] keys written "venue:symbol".
Throws ConfigError for a weight naming no instrument or an instrument with no weight (when there are weights), and for an instrument or crossover split over fewer instruments than arms.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
The instrument's name in the configuration's terms: "venue:symbol".
|
inlinenoexcept |
INT64_MIN: none.
|
inlinenoexcept |
INT64_MAX: none.
|
inlinenoexcept |
0: no blocks
|
inlinenoexcept |
When block k ends (time, crossover).
|
inlinenoexcept |
The instrument is in the test: [ab.assign] names it, or there is none.
|
inlinenoexcept |
branch: the arm of this run, and the start when [ab] start names none.
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
The arm instrument inst is in at t (ns since the epoch): kNoArm before start and from end.
|
noexcept |
The first time after t at which arm_at() may change, INT64_MAX when it never does.
|
noexcept |
The block t falls in (time, crossover), 0 with instrument.
|
noexcept |
The run of arms() blocks t falls in, each arm once in it (time, crossover); 0 with instrument.
|
inlinenoexcept |
The instrument's stratum (instrument, crossover; 0 with time) and its slot in it.
|
inlinenoexcept |
|
noexcept |
Every arm names the same parameters with the same values: an A/A test.
|
staticconstexpr |