|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <geodesic_strategy.hpp>
Classes | |
| struct | TripleComparison |
| Three-way performance comparison across all strategy modes. More... | |
Public Member Functions | |
| ExtendedBacktester (BacktestConfig config=BacktestConfig{}, std::size_t rolling_window=100) noexcept | |
| std::optional< TripleComparison > | run_triple (const std::vector< GeodesicBarData > &bars, const std::vector< double > &asset_returns, const std::string &ticker="") const noexcept |
| std::optional< std::vector< double > > | geodesic_returns (const std::vector< GeodesicBarData > &bars, const std::vector< double > &asset_returns) const noexcept |
Runs all three strategy modes side by side and reports metrics.
Definition at line 64 of file geodesic_strategy.hpp.
|
explicitnoexcept |
Construct with backtesting configuration and rolling window size.
config — Risk-free rate, annualisation, effective mass, etc.rolling_window — Window for rolling p75 deviation (in bars). Definition at line 74 of file geodesic_strategy.cpp.
|
noexcept |
Compute only the geodesic strategy return series (for inspection).
Return series, or nullopt on invalid input.
Definition at line 137 of file geodesic_strategy.cpp.
|
noexcept |
Run all three strategies and return a three-way comparison.
bars — One GeodesicBarData per time step.asset_returns — Realised asset returns aligned to bars (same length).ticker — Ticker label for the output (informational only).TripleComparison, or nullopt if:
Definition at line 159 of file geodesic_strategy.cpp.