|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <spacetime_manifold.hpp>
Public Member Functions | |
| SpacetimeManifold () noexcept=default | |
| std::optional< Regime > | process (const SpacetimeEvent &event) const noexcept |
| Classify a spacetime event into a relativistic regime. | |
| std::array< double, NUM_CHRISTOFFEL > | christoffelSymbols (const MetricTensor &metric) const noexcept |
| Compute all 64 Christoffel symbols Γ^λ_μν via finite differences. | |
| MetricTensor | flatMetric () const noexcept |
| Return the flat Minkowski metric. | |
Definition at line 127 of file spacetime_manifold.hpp.
|
defaultnoexcept |
|
noexcept |
Compute all 64 Christoffel symbols Γ^λ_μν via finite differences.
Uses central finite differences on the metric at the origin: ∂g_{μν}/∂x^λ ≈ (g(x+ε·eλ) − g(x−ε·eλ)) / (2ε)
For a constant (flat) metric all derivatives are machine-zero, so all 64 symbols are < 1e-8 in absolute value.
The metric callback signature: MetricCallback: (const std::array<double,DIM>&) → MetricTensor A null-like constant metric simply returns the same MetricTensor regardless of position.
| metric | The metric tensor at the origin (flat or curved). |
Definition at line 84 of file spacetime_manifold.cpp.
|
noexcept |
Return the flat Minkowski metric.
Convenience wrapper around MetricTensor::minkowski().
Definition at line 141 of file spacetime_manifold.cpp.
|
noexcept |
Classify a spacetime event into a relativistic regime.
Uses x-coordinate as a proxy for normalised velocity |β|: β_proxy = tanh(|x| / (|x| + 1.0)) (maps R⁺ → [0,1))
Definition at line 67 of file spacetime_manifold.cpp.