|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <geodesic_path.hpp>
Static Public Member Functions | |
| static double | compute (const Geodesic &geodesic, double dt=1.0) noexcept |
| static double | distance (const PortfolioState &a, const PortfolioState &b) noexcept |
| Compute the Euclidean distance between two PortfolioState weight vectors. | |
Computes the integrated arc length of a Geodesic.
Arc length = integral of ||dw/dt|| dt
Approximated numerically as sum of Euclidean distances between consecutive waypoints.
Definition at line 139 of file geodesic_path.hpp.
|
staticnoexcept |
Compute the arc length of a discretised geodesic.
| geodesic | The path to measure. |
| dt | Time step between waypoints in the same units as timestamp_ms differences. If zero, defaults to 1.0. |
Definition at line 163 of file geodesic_path.cpp.
|
staticnoexcept |
Compute the Euclidean distance between two PortfolioState weight vectors.
Definition at line 149 of file geodesic_path.cpp.