|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
Full SRFM pipeline engine for N assets. More...
#include <n_asset_engine.hpp>
Public Member Functions | |
| NAssetEngine (AssetUniverse universe, EngineConfig cfg={}) noexcept | |
| Construct an engine for the given asset universe. | |
| std::optional< std::monostate > | ingest (std::span< const OHLCVBar > bars) noexcept |
| Ingest one bar for every asset in the universe. | |
| std::optional< EngineOutput > | process () const noexcept |
| Run the full pipeline on accumulated history. | |
| std::optional< EngineOutput > | ingest_and_process (std::span< const OHLCVBar > bars) noexcept |
| Ingest bars then immediately process. | |
| int | n_assets () const noexcept |
| Return the number of assets. | |
| bool | ready () const noexcept |
| Return true if enough bars have been accumulated. | |
Full SRFM pipeline engine for N assets.
Accumulates OHLCV bars, estimates covariance, builds an NAssetManifold, computes relativistic momenta, and classifies market regimes.
Definition at line 129 of file n_asset_engine.hpp.
|
explicitnoexcept |
Construct an engine for the given asset universe.
| universe | The set of assets (names must be non-empty). |
| cfg | Engine configuration. |
Definition at line 23 of file n_asset_engine.cpp.
|
noexcept |
Ingest one bar for every asset in the universe.
Bars must be provided in the same order as universe.names. The bar is appended to the history ring buffer; if history exceeds lookback_bars * 2 the oldest entry is dropped.
| bars | Span of bars, one per asset (must have length n_assets()). |
Definition at line 32 of file n_asset_engine.cpp.
|
noexcept |
Ingest bars then immediately process.
Convenience wrapper: ingest(bars) followed by process().
| bars | Bars to ingest. |
Definition at line 260 of file n_asset_engine.cpp.
|
inlinenoexcept |
Return the number of assets.
Definition at line 253 of file n_asset_engine.hpp.
|
noexcept |
Run the full pipeline on accumulated history.
Requires ready() == true (at least lookback_bars entries in history).
Steps:
Definition at line 166 of file n_asset_engine.cpp.
|
inlinenoexcept |
Return true if enough bars have been accumulated.
Definition at line 257 of file n_asset_engine.hpp.