Stateless end-to-end SRFM pipeline engine.
Stateless end-to-end SRFM pipeline engine.
Engine engine;
auto result = engine.process("100.0,101.0,102.5,101.8,103.0");
if (result) {
}
#pragma once
#include <array>
#include <cmath>
#include <optional>
#include <string_view>
#include <vector>
#include "../manifold/spacetime_manifold.hpp"
struct PipelineResult {
Regime
regime{Regime::Newtonian};
};
class Engine {
public:
[[nodiscard]] std::optional<PipelineResult>
process(std::string_view data)
const noexcept;
private:
[[nodiscard]] std::vector<double>
parse_prices(std::string_view data) const noexcept;
};
}
Engine() noexcept=default
std::optional< PipelineResult > process(std::string_view data) const noexcept
Process a CSV-like byte sequence through the full pipeline.
Regime
Market relativistic regime classification.
double rapidity
Rapidity φ = atanh(β)
double gamma
Lorentz factor γ ≥ 1.
double doppler
Doppler factor D(β) > 0.
Regime regime
Relativistic regime classification.
std::size_t price_count
Number of price observations parsed.
double beta
Normalised market velocity β
double relativistic_signal
γ-corrected representative signal