|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <minkowski_momentum.hpp>
Static Public Member Functions | |
| static bool | conserves (std::span< const FourMomentum > trades, const FourMomentum &reference, double tolerance=1e-9) noexcept |
| static FourMomentum | sum (std::span< const FourMomentum > momenta) noexcept |
Checks whether a set of trade four-momenta conserves total four-momentum (i.e. the net change in portfolio exposure sums to the reference vector).
Definition at line 126 of file minkowski_momentum.hpp.
|
staticnoexcept |
Check four-momentum conservation for a collection of trades.
The trades are considered "conserving" if the sum of all four-momentum vectors equals the reference vector within tolerance.
| trades | Span of four-momentum changes from individual trades. |
| reference | Expected net four-momentum (e.g. zeros for net-flat). |
| tolerance | Per-component absolute tolerance (default 1e-9). |
Definition at line 87 of file minkowski_momentum.cpp.
|
staticnoexcept |
Sum a collection of four-momenta into a single resultant.
| momenta | Span of four-momentum vectors. |
Definition at line 74 of file minkowski_momentum.cpp.